Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Literal "true" doesn't test as truthy #24

Closed
arthurevans opened this issue Mar 25, 2014 · 5 comments
Closed

Literal "true" doesn't test as truthy #24

arthurevans opened this issue Mar 25, 2014 · 5 comments

Comments

@arthurevans
Copy link

When I write an expression like it doesn't appear to test as truthy. {{ 1 }} and {{ !! true }} work as expected. Even if="{{ }}" appears to evaluate as truthy, but not true.

Repro:
http://jsbin.com/pagejoga/3/edit

@arv arv self-assigned this Mar 25, 2014
@arv
Copy link
Contributor

arv commented Mar 25, 2014

I think the issue is that true/false are treated as simple paths and not as expressions.

@arv arv closed this as completed in 1483676 Mar 25, 2014
@arv
Copy link
Contributor

arv commented Mar 25, 2014

Numbers are still broken

@arv arv reopened this Mar 25, 2014
@arv arv closed this as completed in 3978609 Mar 26, 2014
@rafaelw
Copy link
Contributor

rafaelw commented Mar 26, 2014

@rafaelw rafaelw reopened this Mar 26, 2014
@rafaelw
Copy link
Contributor

rafaelw commented Mar 26, 2014

(reverted). I can look at it tomorrow.

@rafaelw rafaelw closed this as completed Mar 26, 2014
@rafaelw rafaelw reopened this Mar 26, 2014
@arv
Copy link
Contributor

arv commented Aug 13, 2014

Fixed in 99229bb

@arv arv closed this as completed Aug 13, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants