I know that with 1.3.3 it is possible to pass the third argument but that is not my point. I am proposing a cleaner API around event listening to avoid any confusion between function(){}.bind() and jQuery.bind(). They serve two different purposes.
On Jul 14, 8:57 am, Azat Razetdinov <razetdi...@gmail.com> wrote: > In jQuery 1.3.3 the above code could be written as > > element.bind('click', someFunction, this); > > On Jul 14, 4:20 pm, aHeckman <aaron.heckm...@gmail.com> wrote: > > > With the inclusion of Function.prototype.bind in ECMAscript 5, I'd > > like to open discussion around possibly modifying the API around bind/ > > unbinding events. I feel changing jQuery would help keep it's API > > cleaner. For example, the following seems dirty and will cause > > unnecessary confusion: > > > jQuery.bind('click', someFunction.bind(this)); > > > Maybe listen/unlisten, watch/unwatch, or something similar would be > > better. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---