Re: [whatwg/dom] [Proposal] Add EventTarget.getEventListeners() (#412)

All good points there, thanks for the thoughtful response @domenic!

On another note, another possible design would be to have the same signature as `addEventListener` with all three arguments (type, callback, options) which would act as filters for which listeners to return. I suspect if the only supported filter is `type`, the rest will be emulated by developers via looping over the returned array.

-- 
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/412#issuecomment-280470842

Received on Thursday, 16 February 2017 21:44:24 UTC