Re: [whatwg/dom] Owned weak event listener to prevent memory leak (using EventListenerOptions) (#243)

@annevk I'm not sure what you mean. If one wants to implement
```
document.addEventListener('click', ev => { ... }, { owner: popupElem }); 
```
He has to reference `popupElem` _strongly_ somewhere, and this effectively prevent `popupElem` being GC'd when it is no longer needed elsewhere.

-- 
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/243#issuecomment-373242637

Received on Thursday, 15 March 2018 02:46:52 UTC