[Dojo-interest] scopeMap breaks "query"

Rawld Gill rgill at altoviso.com
Tue Aug 2 13:44:48 EDT 2011


I assume that "/source/javascript/dojo-release-1.6.1/dojo/dojo.js" points to 
dojo 1.6.1. scopeMap is a 1.7 feature; it does not exist in 1.6.

On Tuesday 02 August 2011 09:00:50 Felix E. Klee wrote:
> 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?
> ________________________________________________________
> Dojotoolkit: http://dojotoolkit.org
> Reference Guide: http://dojotoolkit.org/reference-guide
> API Documentation: http://dojotoolkit.org/api
> Tutorials: http://dojotoolkit.org/documentation
> 
> Dojo-interest at mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest


More information about the Dojo-interest mailing list