W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2014

Re: Adding an interface to provide a list of listeners

From: Marat Tanalin <mtanalin@yandex.ru>
Date: Sun, 27 Jul 2014 21:08:51 +0400
To: Anne van Kesteren <annevk@annevk.nl>, Karl Groves <kgroves@paciellogroup.com>
Cc: Shane McCarron <shane@aptest.com>, Ms2ger <ms2ger@gmail.com>, "www-dom@w3.org" <www-dom@w3.org>, W3C WAI Protocols & Formats <public-pfwg@w3.org>
Message-Id: <7071881406480931@web8h.yandex.ru>
27.07.2014, 15:28, "Anne van Kesteren" <annevk@annevk.nl>:
>> šAnd that search turns up almost a quarter-of-a-million results. The top
>> šresults are quite relevant to this discussion and also demonstrate that many
>> špeople are looking for such a thing. šThe fact is, the browsers themselves
>> šalready have this, but it isn't exposed in a way that devs can get to.
> The reasoning is that listeners are observers and adding one should
> not have side effects. Exposing listeners leads to abuse.

Cloning the original element and replacing it with the clone (a workaround typically used currently to remove listeners) is probably worse than a possible standard way to expose listeners to allow legitimate direct removal of just listeners without such unneeded (and probably at least slower) workarounds.
Received on Sunday, 27 July 2014 17:09:25 UTC

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