Skip to content

Instantly share code, notes, and snippets.

View robotconscience's full-sized avatar

Brett Renfer robotconscience

View GitHub Profile
// BIND FIX FOR OLDER BROWSERS
if( Function.prototype.bind ) {
} else {
/** safari, why you no bind!? */
Function.prototype.bind = function (bind) {
var self = this;
return function () {
var args = Array.prototype.slice.call(arguments);
return self.apply(bind || null, args);
};