fixes a problem with each not working if the whole list is replaced #522

Merged
merged 2 commits into from Nov 1, 2013

Conversation

Projects
None yet
1 participant
@justinbmeyer
Contributor

justinbmeyer commented Oct 31, 2013

If you have some data like m = new can.Map({list: [1,2]}) and a template like:

{{#each list}} ... {{/each}}

and you replace the list property with a new list like:

m.attr('list', new can.List(["a","b"])

it would break mustache, this fixes it.

justinbmeyer added a commit that referenced this pull request Nov 1, 2013

Merge pull request #522 from bitovi/mustache-each-updates-if-list-is-…
…replaced

fixes a problem with each not working if the whole list is replaced

@justinbmeyer justinbmeyer merged commit bd04d71 into master Nov 1, 2013

1 check passed

default The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment