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

Model.store and live bind does not handle same object initialized more times #357

Closed
schovi opened this issue Apr 12, 2013 · 2 comments
Closed
Assignees
Milestone

Comments

@schovi
Copy link
Contributor

schovi commented Apr 12, 2013

As you can see in this example http://jsfiddle.net/schovi/MTfVD/

When i have one model (with same 'id') instantiated more times in application and it is live binded. Then when I change something in instance no.1 it is not changed in another instances.

via @daffl

@daffl
Copy link
Contributor

daffl commented Apr 12, 2013

The problem is that the store update is based on the actual request counter (see here) which is not updated on a .model call and hence it creates a new Model every time.

@ghost ghost assigned shcarrico and moschel May 26, 2013
moschel added a commit that referenced this issue May 26, 2013
moschel added a commit that referenced this issue May 26, 2013
#357 fixing Model.store and live bind does not handle same object initia...
@moschel
Copy link
Contributor

moschel commented May 26, 2013

Fixed. Thanks for submitting.

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

No branches or pull requests

4 participants