Created
October 14, 2008 17:34
-
-
Save javascripter/16749 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function.prototype.bind = function bind() { | |
var args = Array.slice(arguments), | |
thisObj = args.shift(), | |
self = this; | |
return function () | |
self.apply(thisObj, args.concat(Array.slice(arguments))); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment