Created
August 10, 2013 05:09
-
-
Save AaronO/6199140 to your computer and use it in GitHub Desktop.
This file contains 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
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