Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'key' property breaks mustache helpers #542

Merged
merged 3 commits into from
Nov 13, 2013
Merged

Conversation

moschel
Copy link
Contributor

@moschel moschel commented Nov 13, 2013

Any time an object passed via a mustache template to a helper contains a "key" property, the scope is not passed correctly (probably also true if the object has an "index" or "value" property).

Seems to be due to https://github.com/bitovi/canjs/blob/master/view/mustache/mustache.js#L71.

@imjoshdean looks like its because of the new directives you added to mustache? Can you please take a look?

This test passes in v2.0.0 but fails in v2.0.1

imjoshdean added a commit that referenced this pull request Nov 13, 2013
"key" and "index" properties passed into can.Mustache templates no longer break template.
@imjoshdean imjoshdean merged commit cccd2d0 into master Nov 13, 2013
@daffl daffl deleted the keyPropertyBreaksMustache branch January 7, 2014 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants