- From: Andrew Nosenko <notifications@github.com>
- Date: Wed, 23 Dec 2020 03:35:03 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 23 December 2020 11:35:15 UTC
> I made a PR (to Node) for adding weak listeners @benjamingr this is awesome, thank you! I believe this is going to be really useful beyond `AbortController`, too. I used the [weak event pattern](https://docs.microsoft.com/en-us/dotnet/desktop/wpf/advanced/weak-event-patterns?view=netframeworkdesktop-4.8) quite a few times in .NET. Once your PR is merged in, what would be best way to detect this feature? I have this [`createWeakEventListener`](https://gist.github.com/noseratio/f037cd08041a72e31e3899747cb85462#file-linkedabortcontroller-mjs-L15) that works in browsers, for Node I'd like to update it to use your implementation where available. -- 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/920#issuecomment-750186672
Received on Wednesday, 23 December 2020 11:35:15 UTC