- From: Andrea Giammarchi <notifications@github.com>
- Date: Wed, 09 Mar 2022 08:58:53 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 9 March 2022 16:59:05 UTC
**alternative** how about an explicit API that allows to retrieve all listeners from X time on?
```js
element.addEventListener('click', myOwnBusiness);
const listeners = element.observeListeners();
[...listeners]; // nothing
element.addEventListener('click', publicAffair);
[...listeners]; // [publicAffair]
```
or dare I say, something to implement through a mutation observer when listeners are added/removed? still with a possibility to opt-out from certain listeners (as in filterOut property) ... would this work better?
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/412#issuecomment-1063145913
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/dom/issues/412/1063145913@github.com>
Received on Wednesday, 9 March 2022 16:59:05 UTC