Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Metamorph updates multiple models in the store #17

Closed
kamal opened this Issue · 1 comment

1 participant

@kamal

To illustrate the problem, you'll need to save the following HTML and open it up locally in a browser: https://gist.github.com/1532069

  1. In the console, create a couple new models

    var ember = App.store.create(App.Venue, {name: "Ember"});
    var wycats = App.store.create(App.Venue, {name: "wycats"});
    
  2. Click on "Ember".

  3. Notice that "wycats" changed to the same value as "Ember". Is this somehow related to #11?

What's weird is the views don't update if I try to update the instance that got returned by create in the console:

ember.set("name", "tomdale"); // doesn't update the DOM

But this works

App.venues.objectAt(0).set("name", "tilde");
@kamal

Latest commit fixes it.

@kamal kamal closed this
@pangratz pangratz referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.