News for hackers. Stuff that matters.
Re: by joske2 on Monday March 07, 2011 @12:48AM (#2296193)
In ES5 you have Function.prototype.bind that returns a new function with this bound to whatever you want. You can also pass extra default arguments. On older browsers you could use es5-shim for this functionality.

See https://developer.mozilla.org/en/JavaScript/Reference/Global...

There are no comments on this comment yet.