Re: [whatwg/dom] toggleEventListener (#251)

I don't know of any analogy in a library. This API would need all of the arguments that `addEventListener` needs since it's potentially calling both add and remove. The analogy to `classList` isn't good because 1) that case is just toggling a simple string, there is no other associated state, and 2) unlike `classList.contains()`, there is no method exposed to determine whether any event listener is currently attached at all, much less attached with a specific handler and set of event options.


---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/251#issuecomment-219298351

Received on Sunday, 15 May 2016 17:19:24 UTC