Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
List.prototype.off = function(event, selector, fn, capture){
if ('string' == typeof selector) {
for (var i = 0; i < this.els.length; ++i) {
// TODO: add selector support back
delegate.unbind(this.els[i], event, fn._delegate, capture);
}
return this;
}
capture = fn;
fn = selector;
for (var i = 0; i < this.els.length; ++i) {
events.unbind(this.els[i], event, fn, capture);
}
return this;
};
return this.forEach(function (el) {
// TODO: add selector support back
delegate.unbind(el, event, fn._delegate, capture);
});
}
return this.forEach(function (el) {
// TODO: add selector support back
delegate.unbind(el, event, fn._delegate, capture);
});
}
var fn = delegate.bind(uls[0], 'li a', 'click', function(e){
console.log(e.target);
if (++n >= 3) {
console.log('unbind');
delegate.unbind(uls[0], 'click', fn, false);
}
}, false);
var fn2 = delegate.bind(uls[1], 'li a', 'click', function(e){
console.log(e.target);
if (++n >= 8) {
console.log('unbind');
delegate.unbind(uls[1], 'click', fn2, false);
}
}, false);
Remember.prototype.unbind = function() {
delegate.unbind(document, inputs, this.oninput);
delegate.unbind(document, buttons, this.onselect);
};
Remember.prototype.unbind = function() {
delegate.unbind(document, inputs, this.oninput);
delegate.unbind(document, buttons, this.onselect);
};
_.each(this._bindings, function(binding) {
delegate.unbind(form, binding.event, binding.cb);
});
exports.stopListening = function(){
delegate.unbind(document, 'click', zoomListener, false);
};
Remember.prototype.unbind = function() {
delegate.unbind(document, inputs, this.oninput);
delegate.unbind(document, buttons, this.onselect);
};