[dojo-contributors] Beware: use dojo.config instead of djConfig

James Burke jburke at dojotoolkit.org
Tue Jan 22 06:11:11 UTC 2008


As of r12124 on the 1.1 trunk, you should use dojo.config instead of
djConfig inside any of the dojo/dijit/dojox modules.

djConfig is still used externally to configure dojo, the only thing
that has changed is how we internally get the config values. To
support multiversion dojo in a page, the djConfig object is copied to
dojo.config. It is a shallow copy.

So:
- still use djConfig in your pages to configure dojo before including dojo.js.
- still use djConfig in comments when talking about the config
switches that dojo supports.

Just use dojo.config in the code to read the values.

I have updated dojo, dijit and dojox to use dojo.config (r12124 was
the last update).

BEWARE: check any patches you merge into head now, and any branch
merging you do. Nothing will visibly break, but down the road we will
have trouble.

James


More information about the dojo-contributors mailing list