News for hackers. Stuff that matters.
Re:Building a web app with no framework by mark_and_sweep on Tuesday March 08, 2022 @11:33AM (#30601858)
Using a subtree, childlist MutationObserver, you can implement a disconnectedCallback for non-custom elements. In the callback, you can clean-up any event handlers that you have added to the element yourself.

There are no comments on this comment yet.