Created
September 24, 2009 09:19
-
-
Save boffbowsh/192632 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
// Make 'this' available within ajax calls | |
Function.prototype.bind = function(thisArg){ | |
var self = this; | |
return function() { self.apply(thisArg, arguments); }; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment