ember.js - Update ember-data model -


i'm trying update model ember-data (jsbin):

app = ember.application.create({   ready: function() {     var post = app.post.find(1);     post.one('didload', function() {       post.set('name', 'my new name');       post.save();     });   } });  app.store = ds.store.extend({   revision: 12,   adapter: ds.fixtureadapter });  app.post = ds.model.extend({   name: ds.attr('string') });  app.post.fixtures = [   {id: '1', name: 'first post'} ]; 

and following error in chrome:

uncaught error: attempted handle event `didcommit` on <app.post:ember226:1> while in state rootstate.loaded.updated.uncommitted. called undefined 

is there wrong or bug ?


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -