[Dojo-interest] scopeMap breaks "query"

Felix E. Klee felix.klee at inka.de
Tue Aug 2 12:00:50 EDT 2011


I load Dojo as follows:

  <script type="text/javascript">
    var djConfig;
    djConfig = {
        isDebug: true,
        scopeMap: [
            ['dojo', 'myDojo'],
            ['dijit', 'myDijit'],
            ['dojox', 'myDojox']
        ]
    };
  </script>
  <script type="text/javascript"
          src="/source/javascript/dojo-release-1.6.1/dojo/dojo.js">
  </script>

"myDojo.byId" is available, but "myDojo.query" is undefined. And without
"scopeMap", "dojo.query" works just fine.

Any idea why specification of "scopeMap" makes "query" undefined? A bug?
A workaround?


More information about the Dojo-interest mailing list