Skip to content

Instantly share code, notes, and snippets.

@Daniel-Hug
Created May 7, 2013 16:00
Show Gist options
  • Save Daniel-Hug/5533768 to your computer and use it in GitHub Desktop.
Save Daniel-Hug/5533768 to your computer and use it in GitHub Desktop.
// Function.bind polyfill:
open.bind||(Function.prototype.bind=function(b){function c(){return d.apply(this instanceof a&&b?this:b,e.concat([].slice.call(arguments)))}function a(){}var e=[].slice.call(arguments,1),d=this;a.prototype=this.prototype;c.prototype=new a;return c});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment