Changeset 7349

Show
Ignore:
Timestamp:
02/18/07 21:13:37 (21 months ago)
Author:
jburke
Message:

(merge from 0.4 branch) References #2366. Dumb ordering mistake. Caused lots of DnD test failures. Hooray for unit tests.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/loader_xd.js

    r7341 r7349  
    109109        //Add the module (package) to the list of modules. 
    110110        if(this.isXDomain){ 
    111                 //Curious: is this array going to get whacked with multiple access since scripts 
    112                 //load asynchronously and may be accessing the array at the same time? 
    113                 //JS is single-threaded supposedly, so it should be ok. And we don't need 
    114                 //a precise ordering. 
    115                 this.xdOrderedReqs.push(module); 
    116  
    117                 //Add to waiting packages. 
    118111                //If this is a __package__.js file, then this must be 
    119112                //a package.* request (since xdomain can only work with the first 
     
    124117                } 
    125118 
     119                this.xdOrderedReqs.push(module); 
     120 
     121                //Add to waiting packages. 
    126122                this.xdInFlight[module] = true; 
    127123