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

Yes please!! I currently have to hijack `addEventListener` in my libraries to emulate this, which is horrible. In many cases when writing UI libraries, keeping references to all related event handlers would lead to tightly coupled spaghetti code.

To be clear, this does **not** solve all the use cases in #412, but it addresses a very good chunk of them. I would guess over 80% of them.

For the person who doesn't like strings (!): no need to force anything on people. Both symbols and strings can peacefully co-exist as accepted types for this parameter. :) 

>From my experience using similar functionality, some things to take into account:

- It needs to be possible to add multiple classes
- Listeners need to be removable either with or without a type + class(es).

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

Received on Sunday, 25 June 2017 19:14:00 UTC