How to use the delegate.unbind function in delegate

To help you get started, we’ve selected a few delegate examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ForbesLindesay-Unmaintained / transformers / test / fixtures / component / build / build.js View on Github external
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;
};
github component / dom / dom.js View on Github external
return this.forEach(function (el) {
      // TODO: add selector support back
      delegate.unbind(el, event, fn._delegate, capture);
    });
  }
github component / dom / lib / events.js View on Github external
return this.forEach(function (el) {
      // TODO: add selector support back
      delegate.unbind(el, event, fn._delegate, capture);
    });
  }
github zenorocha / delegate / test / index.html View on Github external
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);
github zenorocha / delegate / test / index.html View on Github external
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);
github auth0 / lock-passwordless / assets / remember.js View on Github external
Remember.prototype.unbind = function() {
  delegate.unbind(document, inputs, this.oninput);
  delegate.unbind(document, buttons, this.onselect);
};
github matthewmueller / remember / index.js View on Github external
Remember.prototype.unbind = function() {
  delegate.unbind(document, inputs, this.oninput);
  delegate.unbind(document, buttons, this.onselect);
};
github goinstant / form / lib / form.js View on Github external
_.each(this._bindings, function(binding) {
    delegate.unbind(form, binding.event, binding.cb);
  });
github bmcmahen / image-zoom / dist / imagezoom.js View on Github external
exports.stopListening = function(){
  delegate.unbind(document, 'click', zoomListener, false);
};
github auth0 / lock-passwordless / assets / remember.js View on Github external
Remember.prototype.unbind = function() {
  delegate.unbind(document, inputs, this.oninput);
  delegate.unbind(document, buttons, this.onselect);
};

delegate

Lightweight event delegation

MIT
Latest version published 7 years ago

Package Health Score

70 / 100
Full package analysis

Popular delegate functions