12 ms·
Is there a way to remove this library (like de-register its event handlers etc) once it has been activated somewhere on the page? The reason I'm asking is that
by tjelen 10y ago
Is there a way to remove this library (like de-register its event handlers etc) once it has been activated somewhere on the page?
The reason I'm asking is that I've often ran into problems with similar no-dependency libraries in highly dynamic environment, that they often leave dangling event handlers on elements, that have been since removed from the page. That leads to various memory leaks and weird bugs.
- hsnayd 10y agoUnfortunately not available for the moment. It just registers click event if It has a trigger. Yes you are right, It should be destructible. I will do that in a couple of days.