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
When starting with different stub values (or no value) for an Observe's property, nested sections of a Mustache fail to update consistently for different patterns of nesting, especially around use of "this." and use of dot notation, and a few cases with "if" mixed in. There seems to be a few groups of patterns: empty list, empty string, and non list/non string values are one (though listalikes work differently when "if" is used). Empty object is the same as having an object with the child null. Null and undefined are the same. can.computes generally are consistent, though (not shown in the fiddle) if you replace a compute with an Observe, it will not work in any case.
The text was updated successfully, but these errors were encountered:
Thanks! I'm not sure if you've seen the "mustache scope" branch, but this would be the best place to get these things right as that is going to be the code that handles this stuff.
When starting with different stub values (or no value) for an Observe's property, nested sections of a Mustache fail to update consistently for different patterns of nesting, especially around use of "this." and use of dot notation, and a few cases with "if" mixed in. There seems to be a few groups of patterns: empty list, empty string, and non list/non string values are one. Empty object is the same as having an object with the child null. Null and undefined are the same. can.computes generally are consistent, though (not shown in the fiddle) if you replace a compute with an Observe, it will not work in any case.
—
Reply to this email directly or view it on GitHub.
Those all seem to work in latest. @bmomberger-reciprocity could you verify at http://jsfiddle.net/Xp9K8/5/?
I think the empty list ones are correct, too because {{#first_level}}{{#second_level}}Text: {{text}}{{/second_level}}{{/first_level}} and similar things will be empty for an empty list (second_level is undefined so the text block will never evaluate). All other cases are evaluating as expected.
http://jsfiddle.net/air_hadoken/Xp9K8/4/
When starting with different stub values (or no value) for an Observe's property, nested sections of a Mustache fail to update consistently for different patterns of nesting, especially around use of "this." and use of dot notation, and a few cases with "if" mixed in. There seems to be a few groups of patterns: empty list, empty string, and non list/non string values are one (though listalikes work differently when "if" is used). Empty object is the same as having an object with the child null. Null and undefined are the same. can.computes generally are consistent, though (not shown in the fiddle) if you replace a compute with an Observe, it will not work in any case.
The text was updated successfully, but these errors were encountered: