Skip to content

Instantly share code, notes, and snippets.

@AaronO
Created August 10, 2013 05:09
Show Gist options
  • Save AaronO/6199140 to your computer and use it in GitHub Desktop.
Save AaronO/6199140 to your computer and use it in GitHub Desktop.
if(!Function.prototype.bind) {
Function.prototype.bind = function(newThis) {
var that = this;
return function(){
return that.apply(newThis, arguments);
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment