Skip to content

Metamorph updates multiple models in the store #17

Closed
kamal opened this Issue Dec 29, 2011 · 1 comment

1 participant

@kamal
kamal commented Dec 29, 2011

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
kamal commented Jan 5, 2012

Latest commit fixes it.

@kamal kamal closed this Jan 5, 2012
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.