Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
どうすればそのようなことを達成できますか?
App.saveManyDifferentModels() App.store.commit(function() { $("#spinner.gif").hide() });
実はこれを行う方法があります。たとえば、コントローラーでは、次のように「didUpdate」メソッドをモデルに追加できます。
var post = this.get("model"); post.didUpdate = function() { $("#spinner.gif").hide(); }; this.get("store").commit();