Ticket #5878: dojo.diff

File dojo.diff, 1.0 kB (added by kriszyp, 11 months ago)

Updated Patch for dojo.js

  • dojo.js

     
    7474                        hostEnv = "spidermonkey"; 
    7575                } 
    7676                var tmps = ["bootstrap.js", "loader.js", "hostenv_"+hostEnv+".js"]; 
     77                if (this.Jaxer) { 
     78                        this.load = Jaxer.Includer.load; 
     79                        tmps.push("hostenv_jaxer.js"); 
     80                } 
    7781         
    7882                if( 
    7983                        (this["djConfig"])&& 
     
    9498                        var root = "./"; 
    9599                        if(isSpidermonkey){ 
    96100                                // auto-detect the base path via an exception. Hack! 
    97                                 try{ throw new Error(""); }catch(e){ root = e.fileName.split("dojo.js")[0]; }; 
    98                         } 
     101                                try{ throw new Error(""); }catch(e){  
     102                                        if (e.fileName.match("dojo.js")) { 
     103                                                root = e.fileName.split("dojo.js")[0]; 
     104                                        } };                    } 
    99105                        if(!this["djConfig"]){ 
    100106                                djConfig = { baseUrl: root }; 
    101107                        } 
     
    128134                tmps.push(root+"_base.js"); 
    129135         
    130136                for(var x=0; x < tmps.length; x++){ 
    131                         if(isRhino||isSpidermonkey){ 
     137                        if(isRhino||isSpidermonkey||this.Jaxer){ 
    132138                                load(tmps[x]); 
    133139                        }else{ 
    134140                                try{