[dojo-contributors] Should connect take string id's for nodes?
eugene at lazutkin.com
Tue Jun 5 16:35:54 EDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
+1 --- I agree with previous comments on performance and "magic" but I
think that Owen is right --- this is an extremely common case and stuff
looks verbose, and less readable to me. Unrolling it in two statements
without the reason looks even more like the case "more code than needed".
> Owen Williams wrote:
>> +1 -- Sounds useful to me, the cost seems outweighed by the convenience.
>> On Jun 5, 2007, at 11:23 AM, Scott J. Miles 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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the dojo-contributors