You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This relates to the fix I made for #292. I only considered computes and not other functions. A non-compute function is treated as a static value when it's an argument to a helper, and function objects are truthy.
Added Mustache.resolve that'll resolve any variable the same way it would normally be interpolated and updated the default helpers to use this for evaluating truthyness.
Please refer to:
http://jsfiddle.net/foxdonut/AUZmf/
{{hasDucks}} evaluates to false, but {{#if}} considers it true, displaying "Ducks:". Instead, it should display "No ducks!"
The text was updated successfully, but these errors were encountered: