reset-event-listeners
v0.0.2
Published
Reset DOM Element Event Listeners
Downloads
11
Readme
reset-event-listeners
Trace and Reset DOM Element Event Listeners.
Quick example
let listeners = traceEventListeners(element);
// add any listeners and/or onhandlers
element.onclick = DoSomething;
element.addEventListener("click", DoSomething);
listeners.reset();
// element.onclick == null;
// No event listeners attached
// another handlers attached
listeners.reset();
// clean