ember.js - Ember model rollback prevents me from setting properties -


i have model that's being created in parent route.

app.parentroute = ember.route.extend   model: -> @store.createrecord('banana') 

when hit child route of parent route, i'd unsaved changed model dropped.

app.childroute = ember.route.extend   aftermodel: (banana) -> banana.rollback() 

the problem once rollback called, ember won't allow me set properties on it. when try, error:

error: attempted handle event `didsetproperty` on <app.banana:ember296:null> while in state root.deleted.saved. called {name: color, oldvalue: undefined, originalvalue: undefined, value: yellow}. 

i read due kind of observer on object, don't have observers set up. missing?

this fixed in ember data 1.0 beta 8, https://github.com/emberjs/data/blob/v1.0.0-beta.8/changelog.md , available here http://builds.emberjs.com/tags/v1.0.0-beta.8/ember-data.js


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -