W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2013

Re: Better event listeners

From: Anne van Kesteren <annevk@annevk.nl>
Date: Tue, 12 Feb 2013 14:33:45 +0000
Message-ID: <CADnb78g4pN+LtyB4o=x3th_YnTGVGPizuPDYG0wOG+X=55dSsg@mail.gmail.com>
To: Glenn Maynard <glenn@zewt.org>
Cc: www-dom@w3.org
On Tue, Feb 12, 2013 at 2:23 PM, Glenn Maynard <glenn@zewt.org> wrote:
> It doesn't work completely differently.  It works exactly the same.
> addEventListener("click", func, true) would be exactly equivalent to
> addEventListener("click", func, {capture: true}).

Yes, but it would also return an object (for which it's not at all
clear that's web compatible). And I think if the preferred API is
going to support event delegation we should also by default ignore
bubbles.


-- 
http://annevankesteren.nl/
Received on Tuesday, 12 February 2013 14:34:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 12 February 2013 14:34:36 GMT