Re: Adding an interface to provide a list of listeners

Boris Zbarsky <[email protected]>
Newsgroups gmane.comp.web.dom.general
Message-ID <[email protected]>
On 7/27/14, 7:56 PM, Marat Tanalin wrote:
> So if specific listener is not specified, then all listeners of the specified event type are removed at once:

This seems like a footgun, no?  One library adds some listeners, then 
another adds some, then the first removes them all, breaking the second 
library.

Or worse yet you do this on a <select size="1"> and remove the click 
event listener that opens the dropdown...

Or did you not actually mean _all_ listeners?  Perhaps you meant "all 
the listeners that this script (or this function or some other unit of 
related code yet to be defined) has added"?

-Boris
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.