MCPcopy Create free account
hub / github.com/codename-co/stack / bind

Function bind

hub/astray/keyboard.js:19–19  ·  view source on GitHub ↗
(target, type, handler)

Source from the content-addressed store, hash-verified

17
18 //polyfills for ms's peice o' shit browsers
19 function bind(target, type, handler) { if (target.addEventListener) { target.addEventListener(type, handler, false); } else { target.attachEvent("on" + type, function(event) { return handler.call(target, event); }); } }
20 [].indexOf||(Array.prototype.indexOf=function(a,b,c){for(c=this.length,b=(c+~~b)%c;b<c&&(!(b in this)||this[b]!==a);b++);return b^c?b:-1;});
21
22 //locals

Callers 1

keyboard.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected