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

[BUGFIX beta] Fix subexpr {{if}} / {{unless}} to use protocol. #13359

Merged
merged 1 commit into from
Apr 18, 2016

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Apr 18, 2016

Prior to this change, the inline {{if / {{unless helpers would not recalulate at the same time as the non-inline versions (because they were not respecting the isTruthy and .length checks properly).

This fixes that by properly wrapping the generated stream with those dependencies (sharing the same code as the block versions of {{if / {{unless).

The tests for this were already written, but disabled when running under HTMLBars. This enables them for running properly in both HTMLBars and Glimmer engines.

Fixes #11701.

Prior to this change, the inline `{{if` / `{{unless` helpers would not
recalulate at the same time as the non-inline versions (because they
were not respecting the `isTruthy` and `.length` checks properly).

This fixes that by properly wrapping the generated stream with those
dependencies (sharing the same code as the block versions of `{{if` /
`{{unless`).

The tests for this were already written, but disabled when running under
HTMLBars. This enables them for running properly in both HTMLBars and
Glimmer engines.
@rwjblue rwjblue merged commit fd69421 into emberjs:master Apr 18, 2016
@rwjblue rwjblue deleted the link-subexpr-helpers branch April 18, 2016 22:44
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.

Ember array not properly updating in template
1 participant