- From: freshp86 <notifications@github.com>
- Date: Wed, 07 Feb 2018 02:34:34 +0000 (UTC)
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 7 February 2018 02:34:59 UTC
This thread is fairly long and has not been updated since July. Can someone summarize the status of this proposal, to facilitate any further steps? Per my understanding (although admittedly gave up on reading everything): The discussion seems to have started with a simple idea of returning a handle/ID from `addEventListener()` and using that with `removeEventListener()` or a new `clearEventListener()`. Concerns about the implementation complexity were raised, and also questions on whether IDs should be globally unique or only per event target. Then the desire to add/remove listeners in groups was introduced. As a side note (not sure if this was mentioned already), I think both the existing `removeEventListener()` as well a potential new `clearEventListener()`/`removeEventListenerById()` should return a boolean revealing whether such a listener was indeed found and removed. This would help people catch many "silently did not remove any listener" bugs, and it is similar to many existing delete APIs like [Map#delete()](Map.prototype.delete). Thank you. -- 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/208#issuecomment-363636562
Received on Wednesday, 7 February 2018 02:34:59 UTC