Re: EventTarget.on

On Wed, 23 Nov 2011 18:07:18 +0100, Jake Verbaten <raynos2@gmail.com>  
wrote:
> Would it be worthwhile to have some kind of event delegation mechanism?

I think so. Is there no need to unregister these handlers?

At TPAC something like was discussed:

   target.on.eventName.add(callback, optional options)
   target.on.eventName.remove(callback)

options could be used for delegation, only firing when AT_TARGET, only  
during BUBBLING_PHASE, etc.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Wednesday, 23 November 2011 17:13:09 UTC