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

stache does not update view with can.List and deep properties #2007

Closed
pYr0x opened this issue Oct 21, 2015 · 1 comment
Closed

stache does not update view with can.List and deep properties #2007

pYr0x opened this issue Oct 21, 2015 · 1 comment
Assignees
Milestone

Comments

@pYr0x
Copy link

pYr0x commented Oct 21, 2015

on checking out how to listen to viewModel-changes in components event object (#1740) i found a bug.

in this example http://jsbin.com/lakefonulo/edit?js,console,output the "mylist" item 0 is changed to "Hello" but the view is not updated.

@justinbmeyer justinbmeyer added this to the 2.3.2 milestone Oct 29, 2015
@justinbmeyer
Copy link
Contributor

This is almost certainly a problem with can.view.live.list not listening to set events.

Similar to how can.view.live.list listens to add events:

It needs to be doing a similar thing with set. But when a set events happens can sneakily call remove() and add methods with the updated item similar to how diffing does it: https://github.com/bitovi/canjs/blob/master/view/live/live.js#L402

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants