[dojo-contributors] Should connect take string id's for nodes?
Adam L. Peller
adam at peller.org
Tue Jun 5 14:33:37 EDT 2007
Though it may be worth making an exception for some common calls, I'd
be concerned about consistency (and simplicity) of our APIs. It seems
like there are several that accept both Node and String in the html
package... in Dijit I think we tried to remove this pattern.
On 6/5/07, Scott J. Miles <sjmiles at turboajax.com> wrote:
> I am considering altering dojo.connect so that you can pass a string
> (id) for a node as the first argument.
> The cost would essentially be a call to dojo.isString() for every
> connect (and a call to dojo.byId() for every connect to a node).
> I imagine this seems like an incredibly minor thing, but I try to
> consider every cycle used in _base code.
> Scott J. Miles
> TurboAjax Group
> dojo-contributors mailing list
> dojo-contributors at dojotoolkit.org
More information about the dojo-contributors