[dojo-contributors] Using dojo.require('dojo.widget.common') for clarity
amit at mixie.org
Sat Dec 9 09:11:14 EST 2006
Shane has an excellent point:
Using dojo.require("dojo.widget.*") can be quite misleading to some people, who may think that it will include all widgets.
Therefore, I think changing dojo.require('dojo.widget.*') to
dojo.require('dojo.widget.common'), as Alex suggested, is a great idea.
This will clear user confusion, making the code easier to understand.
Alex Russell wrote:
> Well, what we'd discussed was following the emergent convention of
> <namespace>.common, such as has been done in event, lang, and some
> other places.
> Aside from that, I'm not opposed. We can probably flatten a bunch of the
> hierarchy while we're at it.
> On Tuesday 21 November 2006 7:15 am, Shane O'Sullivan wrote:
>> Using dojo.require("dojo.widget.*") can be quite misleading to some
>> people, who may think that it will include all widgets, so changing
>> this to dojo.require("dojo.widget.base.*") would probably be much
>> clearer to end-users.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dojo-contributors