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

Re: EventTarget.on

From: Jake Verbaten <raynos2@gmail.com>
Date: Wed, 23 Nov 2011 17:07:18 +0000
Message-ID: <CAMCMjp2WEDcYwSC-9++ByxqCC8dr7D=4zKDq+prUaAHfcuFeKQ@mail.gmail.com>
To: Glenn Maynard <glenn@zewt.org>
Cc: Anne van Kesteren <annevk@opera.com>, www-dom@w3.org
> Adding a redundant method that clashes with what everyone already
> associates with the name (event delegation),

In prototype and jQuery el.on(ev, handler) works and is an alias for adding
an event listener.

> just to save a few bytes, is definitely not worthwhile.

I'd agree it's probably not worthwhile on it's own.

Since both jQuery and prototype allowing an optional second argument that
filters the event target for event delegation and may be worthwhile to add
that instead.

The exact semantics of filtering / event delegation would be up for

Would it be worthwhile to have some kind of event delegation mechanism?
Received on Wednesday, 23 November 2011 17:07:46 UTC

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