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?

Received on Tuesday, 8 January 2013 11:23:37 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:20 UTC