Ticket #5878: dojo.diff
| File dojo.diff, 1.0 kB (added by kriszyp, 11 months ago) |
|---|
-
dojo.js
74 74 hostEnv = "spidermonkey"; 75 75 } 76 76 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 } 77 81 78 82 if( 79 83 (this["djConfig"])&& … … 94 98 var root = "./"; 95 99 if(isSpidermonkey){ 96 100 // 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 } }; } 99 105 if(!this["djConfig"]){ 100 106 djConfig = { baseUrl: root }; 101 107 } … … 128 134 tmps.push(root+"_base.js"); 129 135 130 136 for(var x=0; x < tmps.length; x++){ 131 if(isRhino||isSpidermonkey ){137 if(isRhino||isSpidermonkey||this.Jaxer){ 132 138 load(tmps[x]); 133 139 }else{ 134 140 try{