You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
981 B
37 lines
981 B
2 years ago
|
/*
|
||
|
Copyright (c) 2004-2006, The Dojo Foundation
|
||
|
All Rights Reserved.
|
||
|
|
||
|
Licensed under the Academic Free License version 2.1 or above OR the
|
||
|
modified BSD license. For more information on Dojo licensing, see:
|
||
|
|
||
|
http://dojotoolkit.org/community/licensing.shtml
|
||
|
*/
|
||
|
|
||
|
|
||
|
dojo.provide("dojo.browser_debug_xd");
|
||
|
dojo.nonDebugProvide=dojo.provide;
|
||
|
dojo.provide=function(_1){
|
||
|
var _2=dojo.hostenv["xdDebugQueue"];
|
||
|
if(_2&&_2.length>0&&_1==_2["currentResourceName"]){
|
||
|
window.setTimeout("dojo.hostenv.xdDebugFileLoaded('"+_1+"')",1);
|
||
|
}
|
||
|
dojo.nonDebugProvide.apply(dojo,arguments);
|
||
|
};
|
||
|
dojo.hostenv.xdDebugFileLoaded=function(_3){
|
||
|
var _4=this.xdDebugQueue;
|
||
|
if(_3&&_3==_4.currentResourceName){
|
||
|
_4.shift();
|
||
|
}
|
||
|
if(_4.length==0){
|
||
|
_4.currentResourceName=null;
|
||
|
this.xdNotifyLoaded();
|
||
|
}else{
|
||
|
_4.currentResourceName=_4[0].resourceName;
|
||
|
var _5=document.createElement("script");
|
||
|
_5.type="text/javascript";
|
||
|
_5.src=_4[0].resourcePath;
|
||
|
document.getElementsByTagName("head")[0].appendChild(_5);
|
||
|
}
|
||
|
};
|