Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
EVENTS.end.forEach((eventName: TouchEventTypes | MouseEventTypes) =>
off(this.listenerNode, eventName, this.handleSortEnd)
);
(eventName: TouchEventTypes | MouseEventTypes) =>
this.container && off(this.container, eventName, eventFunctions[key])
)
EVENTS.move.forEach((eventName: TouchEventTypes | MouseEventTypes) =>
off(this.listenerNode, eventName, this.handleSortMove)
);