Changeset 7885

Show
Ignore:
Timestamp:
03/31/07 21:40:49 (22 months ago)
Author:
jburke
Message:

(merge from 0.4 branch) Fixes #2683. Loading local modules after page load should work now.

Location:
trunk
Files:
1 modified
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/loader_xd.js

    r7606 r7885  
    172172                        var pkg = this.createXdPackage(contents, module, uri); 
    173173                        dj_eval(pkg); 
     174                        //When loading local modules only, there will be no 
     175                        //modules in flight. In that case, trigger the xd 
     176                        //resolution right away. Otherwise, there are issues 
     177                        //with dojo.addOnLoad() calls added after loading only 
     178                        //local modules after the page load. 
     179                        if(this.inFlightCount == 0){ 
     180                                this.watchInFlightXDomain(); 
     181                        } 
    174182                }else{ 
    175183                        if(cb){ contents = '('+contents+')'; }