substack/funstance — pull request #2 by hughsk (2012-12-13 13:01:45+00:00)
Title: Allow running the function under different contexts.

It's nice to be able to still have the option to use bind/call/apply on a method after funstantiating it.

"obj" is still the default context unless "unbound" (the third parameter) is set to true, so it shouldn't break anything :)

``` javascript
var fn = funstance(new EventEmitter, function() {
return this.x * 5
}, true);

fn() // NaN
fn.call({ x: 2 }) // 10
fn.bind({ x: 3 })() // 15
```