Two things:
The immediate error you're seeing is because all asynchronous code must run in Ember's run loop. That means that when your promise resolves and runs the
deffered.resolve
method, it must run that code inside of the run loop. So you have to do something like this:parentSave().then(() -> Em.run.next(() -> deferred.resolve() ) )
Hopefully that's right. Let me know if I'm missing something.
As of Ember 1.5.0, you can't call
_super
in that manner. You must call it inline and not asynchronously.