diff options
author | mensonge | 2008-11-14 15:39:19 +0000 |
---|---|---|
committer | mensonge | 2008-11-14 15:39:19 +0000 |
commit | 1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch) | |
tree | 3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojo/_base/_loader/loader_debug.js | |
parent | 104d59099e048688c4dbac37d72137006e396558 (diff) | |
download | scuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz scuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.zip |
Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojo/_base/_loader/loader_debug.js')
-rw-r--r-- | includes/js/dojo/_base/_loader/loader_debug.js | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/includes/js/dojo/_base/_loader/loader_debug.js b/includes/js/dojo/_base/_loader/loader_debug.js deleted file mode 100644 index 7e52373..0000000 --- a/includes/js/dojo/_base/_loader/loader_debug.js +++ /dev/null @@ -1,61 +0,0 @@ -if(!dojo._hasResource["dojo._base._loader.loader_debug"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. -dojo._hasResource["dojo._base._loader.loader_debug"] = true; -dojo.provide("dojo._base._loader.loader_debug"); - -//Override dojo.provide, so we can trigger the next -//script tag for the next local module. We can only add one -//at a time because there are browsers that execute script tags -//in the order that the code is received, and not in the DOM order. -dojo.nonDebugProvide = dojo.provide; - -dojo.provide = function(resourceName){ - var dbgQueue = dojo["_xdDebugQueue"]; - if(dbgQueue && dbgQueue.length > 0 && resourceName == dbgQueue["currentResourceName"]){ - //Set a timeout so the module can be executed into existence. Normally the - //dojo.provide call in a module is the first line. Don't want to risk attaching - //another script tag until the current one finishes executing. - if(dojo.isAIR){ - window.setTimeout(function(){dojo._xdDebugFileLoaded(resourceName);}, 1); - }else{ - window.setTimeout(dojo._scopeName + "._xdDebugFileLoaded('" + resourceName + "')", 1); - } - } - - return dojo.nonDebugProvide.apply(dojo, arguments); -} - -dojo._xdDebugFileLoaded = function(resourceName){ - - if(!this._xdDebugScopeChecked){ - //If using a scoped dojo, we need to expose dojo as a real global - //for the debugAtAllCosts stuff to work. - if(dojo._scopeName != "dojo"){ - window.dojo = window[dojo.config.scopeMap[0][1]]; - window.dijit = window[dojo.config.scopeMap[1][1]]; - window.dojox = window[dojo.config.scopeMap[2][1]]; - } - - this._xdDebugScopeChecked = true; - } - - var dbgQueue = this._xdDebugQueue; - - if(resourceName && resourceName == dbgQueue.currentResourceName){ - dbgQueue.shift(); - } - - if(dbgQueue.length == 0){ - dbgQueue.currentResourceName = null; - this._xdNotifyLoaded(); - }else{ - if(resourceName == dbgQueue.currentResourceName){ - dbgQueue.currentResourceName = dbgQueue[0].resourceName; - var element = document.createElement("script"); - element.type = "text/javascript"; - element.src = dbgQueue[0].resourcePath; - document.getElementsByTagName("head")[0].appendChild(element); - } - } -} - -} |