How to use the event.bind function in event

To help you get started, we’ve selected a few event 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 javve / list.fuzzysearch.js / dist / list.fuzzysearch.js View on Github external
exports.bind = function(el, type, fn, capture){
  if (!isCollection(el)) {
    events.bind(el, type, fn, capture);
  } else if ( el && el[0] !== undefined ) {
    for ( var i = 0; i < el.length; i++ ) {
      events.bind(el[i], type, fn, capture);
    }
  }
};
github arturhoo / listjs-rails / app / assets / javascripts / list.fuzzysearch.js View on Github external
exports.bind = function(el, type, fn, capture){
  if (!isCollection(el)) {
    events.bind(el, type, fn, capture);
  } else if ( el && el[0] !== undefined ) {
    for ( var i = 0; i < el.length; i++ ) {
      events.bind(el[i], type, fn, capture);
    }
  }
};
github h5bp / html5please / src / js / libs / list.js View on Github external
exports.bind = function(el, type, fn, capture){
  el = toArray(el);
  for ( var i = 0; i < el.length; i++ ) {
    events.bind(el[i], type, fn, capture);
  }
};
github mephux / envdb / envdb / web / public / js / list.js View on Github external
exports.bind = function(el, type, fn, capture){
  el = toArray(el);
  for ( var i = 0; i < el.length; i++ ) {
    events.bind(el[i], type, fn, capture);
  }
};
github javve / list.fuzzysearch.js / dist / list.fuzzysearch.js View on Github external
exports.bind = function(el, type, fn, capture){
  if (!isCollection(el)) {
    events.bind(el, type, fn, capture);
  } else if ( el && el[0] !== undefined ) {
    for ( var i = 0; i < el.length; i++ ) {
      events.bind(el[i], type, fn, capture);
    }
  }
};
github component / datepicker / index.js View on Github external
function Datepicker(el) {
  if (!(this instanceof Datepicker)) return new Datepicker(el);
  this.el = el;
  this.cal = new Calendar;
  this.cal.addClass('datepicker-calendar');
  event.bind(el, 'click', bind(this, this.onclick));
}
github component / audio / index.js View on Github external
function Audio(el) {
  if (!(this instanceof Audio)) return new Audio(el);
  this.audio = el;
  this.el = domify(html);
  this.progress = new Progress;
  this.el.appendChild(this.progress.el);
  el.parentNode.insertBefore(this.el, this.audio);
  event.bind(this.el, 'click', this.toggle.bind(this));
  event.bind(el, 'timeupdate', this.ontimeupdate.bind(this));
}
github segment-boneyard / socrates / lib / nav / index.js View on Github external
var Nav = module.exports = view(template, function (self) {
  self.search = self.el.querySelector('.nav-search');
  self.form = self.el.querySelector('.nav-form');
  bind(self.form, 'submit', prevent);
  bind(self.search, 'focus', function () {
    self.menu.next();
  });
});
github component / autosuggest / autosuggest.js View on Github external
Autosuggest.prototype.bind = function () {
  events.bind(this.el, 'input', this.oninput);
  events.bind(this.el, 'keydown', this.onkeydown);
};
github component / autosuggest / build / build.js View on Github external
Autosuggest.prototype.bind = function () {
  events.bind(this.el, 'input', this.oninput);
  events.bind(this.el, 'keydown', this.onkeydown);
};

event

Functional reactive style events

MIT
Latest version published 11 years ago

Package Health Score

42 / 100
Full package analysis

Popular event functions