Changeset 7400

Show
Ignore:
Timestamp:
02/22/07 11:51:36 (21 months ago)
Author:
jburke
Message:

References #2366. Fixes issue where loading local i18n bundles failed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.4/src/loader_xd.js

    r7348 r7400  
    120120 
    121121                //Add to waiting packages. 
    122                 this.xdInFlight[module] = true; 
     122                //Only add it if not a non-xdomain i18n resource bundle. 
     123                if(!currentIsXDomain && uri.indexOf("/nls/") == -1){ 
     124                        this.xdInFlight[module] = true; 
     125                } 
    123126 
    124127                //Increment inFlightCount 
     
    157160                if(contents == null){ return 0; /*boolean*/} 
    158161                 
    159                 if(this.isXDomain){ 
     162                //If this is not xdomain, or if loading a i18n resource bundle, then send it down 
     163                //the normal eval/callback path. 
     164                if(this.isXDomain && uri.indexOf("/nls/") == -1){ 
    160165                        var pkg = this.createXdPackage(contents, module, uri); 
    161166                        dj_eval(pkg);