three small proposals: the bikeshed cometh!
alex at dojotoolkit.org
Thu Apr 29 03:01:36 PDT 2010
[ snip ]
>> Many functions, both in the DOM and in the library, accept functions as
>> arguments. ES5 provides a bind() method that can ease the use of these
>> functions when the passed method comes from an object. This is, however,
>> inconvenient. E.g.:
>> node.addEventListener("click", obj.method.bind(obj, ...));
>> Also, insufficient. Event listeners can't be detached when using
> That is not true at all. I suggest reading the ES5 specifation that
> before proceeding.
More information about the es-discuss