Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Functions (when called from a template) are no longer bound to the context #317

tysontate opened this Issue · 2 comments

3 participants


Here's a minimal example:
And here's an example of it working properly in 1.0.0.beta.6:

I expect the behavior to be similar to that in 1.0.0.beta.6, but instead functions on the context that are called from the template are no longer bound to the context.

@tysontate tysontate referenced this issue from a commit in stvp/handlebars.js
@tysontate tysontate Bind functions to the context properly.
The regression was introduced in 1.0.rc.1.

This fixes issue #317.

Pretry sure I'm see this also - the following temple renders a Backbone.js model:

{{#with notice}}
<div id="notice_{{id}}" class="notice" style="opacity: 0;">
<button class="close" title="Don't show this message again">&times;</button>

works fine in 1.0.beta6 but fails in 1.0.rc1.



@wycats wycats closed this
This was referenced
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.