Changeset 8007

Show
Ignore:
Timestamp:
04/08/07 12:46:06 (21 months ago)
Author:
jburke
Message:

(merge from 0.4 branch) Fixes #2683. Did not fix debugAtAllCosts case with previous fix, and I was trying to fix it in the wrong way.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojo/trunk/_base/_loader/loader_xd.js

    r7886 r8007  
    120120 
    121121                //Add to waiting packages if it is an xdomain resource. 
    122                 if(currentIsXDomain){ 
     122                //Don't add non-xdomain i18n bundles, those get evaled immediately. 
     123                if(currentIsXDomain || uri.indexOf("/nls/") == -1){ 
    123124                        this.xdInFlight[module] = true; 
    124125 
     
    172173                        var pkg = this.createXdPackage(contents, module, uri); 
    173174                        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                         } 
    182175                }else{ 
    183176                        if(cb){ contents = '('+contents+')'; }