diff options
author | Andrew Dolgov <[email protected]> | 2011-11-08 20:40:44 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-11-08 20:40:44 +0400 |
commit | 81bea17aefb26859f825b9293c7c99192874806e (patch) | |
tree | fb244408ca271affa2899adb634788802c9a89d8 /lib/dijit/robotx.js | |
parent | 870a70e109ac9e80a88047044530de53d0404ec7 (diff) |
upgrade Dojo to 1.6.1
Diffstat (limited to 'lib/dijit/robotx.js')
-rw-r--r-- | lib/dijit/robotx.js | 32 |
1 files changed, 21 insertions, 11 deletions
diff --git a/lib/dijit/robotx.js b/lib/dijit/robotx.js index 8f86dd81b..e5ef90641 100644 --- a/lib/dijit/robotx.js +++ b/lib/dijit/robotx.js @@ -1,24 +1,34 @@ /* - Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved. + Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ -if(!dojo._hasResource["dijit.robotx"]){ -dojo._hasResource["dijit.robotx"]=true; +if(!dojo._hasResource["dijit.robotx"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. +dojo._hasResource["dijit.robotx"] = true; dojo.provide("dijit.robotx"); dojo.require("dijit.robot"); dojo.require("dojo.robotx"); + + +//WARNING: This module depends on GLOBAL dijit being set for v1.5 code; therefore the lexical variable that +//references "dijit" has been renamed to "dijit_" + dojo.experimental("dijit.robotx"); (function(){ -var _1=doh.robot._updateDocument; -dojo.mixin(doh.robot,{_updateDocument:function(){ -_1(); -var _2=dojo.global; -if(_2["dijit"]){ -dijit=_2.dijit; -} -}}); +var __updateDocument = doh.robot._updateDocument; + +dojo.mixin(doh.robot,{ + _updateDocument: function(){ + __updateDocument(); + var win = dojo.global; + if(win["dijit"]){ + window.dijit = win.dijit; // window reference needed for IE + } + } +}); + })(); + } |