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

Comments

Projects
None yet
4 participants
@schovi
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

This comment has been minimized.

Show comment
Hide comment
@daffl

daffl Apr 12, 2013

Contributor

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.

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

Merge pull request #399 from bitovi/issue-357
#357 fixing Model.store and live bind does not handle same object initia...
@moschel

This comment has been minimized.

Show comment
Hide comment
@moschel

moschel May 26, 2013

Contributor

Fixed. Thanks for submitting.

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