Changeset 8006

Show
Ignore:
Timestamp:
04/08/07 12:44:31 (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.

Location:
trunk
Files:
2 modified
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/loader_xd.js

    r7885 r8006  
    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+')'; } 
  • trunk/tests/widget/acme/test_RemoteAcmeButton.html

    r5359 r8006  
    1414                aksd = 65/87; 
    1515        } 
     16        djConfig.baseScriptUri = "../../../"; //for xdomain testing. 
    1617</script> 
    1718