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

Make computed.or and computed.and return truthy values #10254

Merged
merged 2 commits into from
Jan 21, 2015

Conversation

soulcutter
Copy link
Contributor

This behavior more-closely mimics || and && semantics.

Discussion in #10251

Oftentimes it's useful to use the truthy value for things such as
rendering values in templates.

Fixes emberjs#10251
stefanpenner added a commit that referenced this pull request Jan 21, 2015
Make computed.or and computed.and return truthy values
@stefanpenner stefanpenner merged commit 20042e1 into emberjs:master Jan 21, 2015
@soulcutter soulcutter deleted the computed-and-or branch July 9, 2015 21:36
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.

2 participants