Skip to content

Instantly share code, notes, and snippets.

@evilpie
Created August 1, 2010 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save evilpie/503343 to your computer and use it in GitHub Desktop.
Save evilpie/503343 to your computer and use it in GitHub Desktop.
__bind = (function(){
var _bind = Function.prototype.bind;
if (_bind) {
return function(func, context) {
return bind.call(func, context);
}
}
else {
return function(func, context) {
return function(){ return func.apply(context, arguments); }
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment