[dojo-contributors] Using dojo.require('dojo.widget.common') for clarity

Amit Green amit at mixie.org
Sat Dec 9 09:11:14 EST 2006


Team,

    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.

Amit


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.
>
> Regards
>
> 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.
>>
>> Shane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-contributors/attachments/20061209/50fbe1b5/attachment.htm 


More information about the dojo-contributors mailing list