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

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

Merged
merged 2 commits into from Nov 1, 2013

Conversation

justinbmeyer
Copy link
Contributor

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
…replaced

fixes a problem with each not working if the whole list is replaced
@justinbmeyer justinbmeyer merged commit bd04d71 into master Nov 1, 2013
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.

None yet

1 participant