W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2011

Re: EventTarget.on

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 23 Nov 2011 18:12:28 +0100
To: "Glenn Maynard" <glenn@zewt.org>, "Jake Verbaten" <raynos2@gmail.com>
Cc: www-dom@w3.org
Message-ID: <op.v5esq2cg64w2qv@annevk-macbookpro.local>
On Wed, 23 Nov 2011 18:07:18 +0100, Jake Verbaten <raynos2@gmail.com>  
> 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)

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

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:36:59 UTC