Re: Adding an interface to provide a list of listeners

Marat Tanalin <[email protected]>
Newsgroups gmane.comp.web.dom.general
Message-ID <[email protected]>
28.07.2014, 22:43, "Boris Zbarsky" <[email protected]>:
> On 7/28/14, 2:07 PM, Marat Tanalin wrote:
>> б═Note that removal of all listeners at once is already achievable _anyway_ -- just with a somewhat dumb method (replacing original element with its clone).
>
> You just assumed all event targets are elements. б═They're not.
>
>> б═By "all listeners" I mean all listeners that are removed by replacing an element with its clone.
>
> There's that assumption again.

I just gave an idea of what "all listeners" mean in general in my message. But the "remove all listeners" feature could probably be limited to elements if needed -- I didn't yet encounter a need to remove listeners from an object that user cannot interact with.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.