Re: [whatwg/dom] Removing event listeners through an identifier (#208)

@adamdbradley @dtapuska asked that above and @annevk [replied](https://github.com/whatwg/dom/issues/208#issuecomment-207522506) that he thought the group feature was strictly superior to returning a single handle.  Any feedback on the differences between those two approaches to the problem?

I agree with Anne that using some group identifier (possibly an object, not just a string) is probably easier to manager than having to track an id.  If you're going to track an ID anyway, you could just be tracking the callback in the same way.  In fact, `addEventListener` could just return an object that contains the `type`, `handler` and `capture` values to be passed to `removeEventListener` later...

---
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-209045505

Received on Tuesday, 12 April 2016 18:36:27 UTC