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

This looks like a great new primitive to take the pain away from managing event listener lifecycle without causing memory leaks from holding on to handler functions for the purpose of de-registration.

We've in the past polyfilled this with a strategy like storing the reference to the handler functions in the DOM node that had the `addEventListener` call (so that they have the same lifetime), and then adding the group as an attribute value that can be discovered with `querySelectorAll`.


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

Received on Sunday, 25 June 2017 20:56:45 UTC