Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
tysontate opened this Issue · 2 comments

3 participants

@tysontate

Here's a minimal example: http://jsfiddle.net/vStL4/
And here's an example of it working properly in 1.0.0.beta.6: http://jsfiddle.net/5WkXe/

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.
42120d1
@pixeltrix

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;">
{{{message}}}
<button class="close" title="Don't show this message again">&times;</button>
</div>
{{/with}}

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

@wycats
Owner

Fixed

@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.