UNPKG

@kickscondor/umbrellajs

Version:

Lightweight and intuitive javascript library

9 lines (8 loc) 271 B
// Removes the callback to the event listener for each node u.prototype.off = function (events) { return this.eacharg(events, function (node, event) { u(node._e ? node._e[event] : []).each(function (cb) { node.removeEventListener(event, cb); }); }); };