Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
teardown() {
slider.removeEventListener('mousedown', slideReady);
slider.removeEventListener('touchstart', slideReady);
window.removeEventListener('mouseup', slideFinish);
window.removeEventListener('touchstop', slideFinish);
window.removeEventListener('mousemove', slideMove);
window.removeEventListener('touchmove', slideMove);
unmount(slider);
},
};