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

Fix {{else}} inside an attribute (#974) #1006

Merged
merged 2 commits into from May 22, 2014

Conversation

ccummings
Copy link
Contributor

Here: https://github.com/bitovi/canjs/blob/master/view/stache/stache.js#L213
When stache is inside of an attribute, the section it was calling inverse on was the HTMLSection that contains the attribute and not the attribute's TextSection.

The fix is to call inverse on the attribute's TextSection if it exists.

Fixes #974

ccummings pushed a commit that referenced this pull request May 22, 2014
…ttribute

Fix {{else}} inside an attribute (#974)
@ccummings ccummings merged commit 5e9c1f8 into master May 22, 2014
@ccummings ccummings deleted the 974-stache-fix-{{else}}-inside-attribute branch May 22, 2014 03:11
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.

stache: Using {{else}} inside of an attribute
1 participant