wycats/handlebars.js — Issue #140: Method call on object has unexpected 'this' binding
Author: rjharmon
Created: 2011-11-16 06:16:49+00:00
State: open

Create a template and give it data consisting of an object with 1) prototype-inherited methods and 2) a nested item

```
{{method_call}}
{{#nested_thingy}}
{{../method_call}}
```

The first method_call works, as 'this' is correct. In the second one, 'this' is the nested thingy inside the method_call.

It's not clear to me that the prototype-inherited method should matter, though. It seems like the context should no longer be nested-thingy, at least during a method-call on a ../ thing.