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, 8 Jan 2013 12:23:11 +0100
Message-ID: <CADnb78j7Er15WQV71Yy1vreXrZwZXMZVPDGQPMb9V+-f=0ELfA@mail.gmail.com>
To: Jake Verbaten <raynos2@gmail.com>
Cc: "www-dom@w3.org" <www-dom@w3.org>
On Mon, Jan 7, 2013 at 6:18 PM, Jake Verbaten <raynos2@gmail.com> wrote:
> Emphasis being on that `.on(...)` returns some kind of token that can be
> used to remove the listener so we don't have to keep a reference to the
> listener ourself somewhere.

I think that makes a lot of sense. I like the idea of just returning a
function reference.


> The other emphasis is that delegation filtering supports arbitrary functions
> which allows people to delegate  whatever they want instead of a limited
> string based DSL

What are the use cases beyond selector-based filtering?


-- 
http://annevankesteren.nl/
Received on Tuesday, 8 January 2013 11:23:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2013 11:23:39 GMT