by joetyson · 15y ago · 0 comments
function bind(fn, selfObj) { return function() { return fn.apply(selfObj || window); }; } callback = bind(function(){ alert(this.hello); }, this);
No comments yet.