Skip to content

Instantly share code, notes, and snippets.

@boffbowsh
Created September 24, 2009 09:19
Show Gist options
  • Save boffbowsh/192632 to your computer and use it in GitHub Desktop.
Save boffbowsh/192632 to your computer and use it in GitHub Desktop.
// 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