[dojo-contributors] self executing scripts

Nathan Toone toonetown at dojotoolkit.org
Sun May 31 21:21:43 EDT 2009


I like it - it's more self-contained than the two-script way of doing  
it that Bill mentions below.  It makes your code a bit more readable.

-Nathan

On May 31, 2009, at 7:12 PM, Bill Keese wrote:

> Peter E Higgins wrote:
>> <script src="dojo/dojo.js" djConig="parseOnLoad:true">
>>    dojo.require("dijit.TitlePane");
>>    dojo.require("dijit.layout.BorderContainer");
>>    // or just:
>>    dojo.require("my.application");
>> </script>
>
> I guess I don't understand what you are trying to achieve.   We have  
> the
> same thing today except you need to use two script tags, right?
>
> <script src="dojo/dojo.js" djConfig="parseOnLoad:true"></script>
> <script>
>     dojo.require("dijit.TitlePane");
>     dojo.require("dijit.layout.BorderContainer");
> </script>
>
> _______________________________________________
> dojo-contributors mailing list
> dojo-contributors at mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-contributors

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2433 bytes
Desc: not available
Url : http://mail.dojotoolkit.org/pipermail/dojo-contributors/attachments/20090531/9c8bdc05/attachment.p7s 


More information about the dojo-contributors mailing list