Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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);
}
}
};
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);
}
}
};
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);
}
};
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);
}
};
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);
}
}
};
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));
}
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));
}
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();
});
});
Autosuggest.prototype.bind = function () {
events.bind(this.el, 'input', this.oninput);
events.bind(this.el, 'keydown', this.onkeydown);
};
Autosuggest.prototype.bind = function () {
events.bind(this.el, 'input', this.oninput);
events.bind(this.el, 'keydown', this.onkeydown);
};