ember.js - Uncommitted record still present after rollback() -


i have following in objectcontroller , have verified both actions called correctly:

setup: ->   transaction = @get('store').transaction()   post = transaction.createrecord(app.post, {postedat: new date()})   @set('content', post)  cancel: ->   @get('content.transaction').rollback() 

however, despite transaction being rolled uncommitted record still present in data store.

should handling created records differently in transactions?

edit: i'm seeing errors such after rolling transaction:

error: attempted handle event `didsetproperty` on <app.post:ember926:null> while in state rootstate.deleted.saved. called {name: title} 


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -