Bootstrap changes (hostenv, render...)
Submitted by leesakcp on Sun, 03/18/2007 - 08:42.
The bootstrap in 0.9 is not changed much compared to other modules, but several "dj_" prefixed functions and variables are getting migrated into the root Dojo object. The only object defined by Dojo but not under the
dojo.* namespace is now djConfig.
The following changes have been made:
dj_currentContextanddojo.global()have been replaced with the propertydojo.globaldojo.doc()has been replaced with the propertydojo.docdj_undefhas been removed without replacementdojo.findModulehas been removed without public replacement. Private users may referencedojo._loadedModulesdojo.getModuleSymbolshas been made private without replacment.dojo.raise()has been removed without replacement; use throw new Error() insteaddojo.debug(), dojo.debugShallow(), and dojo.debugDeep()have been replaced by the appropriateconsole.*methods.dojo.errorToString()has been removed without replacementdojo.evalObjPathhas been replaced withdojo.getObjectdojo.parseObjPathhas been replaced withdojo.getObject- the
dojo.exists(obj, name)syntax has been removed. Useddojo.exists(name, obj) dojo.evalProp()has been removed without replacementdojo.unimplemented()has been removed without replacementdj_eval()has been moved todojo.eval()dojo.hostenv.*is being entirely removed. Configuration and internal functions that once lived there are either being removed wholesale or being moved up a level to the rootdojoobject. Look for environment-detection variables and methods there.dojo.render.*is being entirely removed. Configuration and internal functions that once lived there are either being removed wholesale or being moved up a level to the rootdojoobject.- Browser detection e.g.
dojo.render.html.iemoved to the root:dojo.isIE. This property returns a version number rather than a boolean. dojo.kwCompoundRequire()has been moved todojo.platformRequire()dojo.experimental()has been moved from a separate module to a built-in method. It is now always available to call.dojo.hostenv.getBaseScriptUri()has been removed in favor ofdojo.dojoUrl("")dj_addNodeEvtHdlr()has been moved todojo._handleNodeEvent()dojo.makeWidgetshas been removed. All responsibility for load-time widget creation is the exclusive purview of Dijit.dojo.getXmlhttpObjecthas been made private. It now lives atdojo._xhrObj- You may now specify configuration options for the toolkit via a
djConfigattribute on the script tag which is used to includedojo.js. This new configuration mode is always available in browser environments. ThedjConfig.allowQueryConfigoption has been removed.
Removed Platform Support
The following platform support files are no longer provided in 0.9:
hostenv_svg.jshostenv_adobesvg.jshostenv_jsc.jshostenv_dashboard.jshostenv_wsh.js
Browser environments, Rhino, and Spidermonkey are still supported "out of the box" in 0.9 and the Apple Dashboard platform support may be re-instated if demand is sufficient.
Configuration Options
The following configuration options have been removed or no longer affect system behavior:
djConfig.allowQueryConfigdjConfig.iePreventClobberdjConfig.ieClobberMinimaldjConfig.searchIdsdjConfig.parseWidgets
djConfig.baseUrl:
djConfig.baseRelativePathdjConfig.baseScriptUridjConfig.libraryScriptUri
dojo.hostenv.getBaseScriptUri() and in it's place is the variable dojo.baseUrl.- Printer-friendly version
- Login or register to post comments
- Subscribe post
