There is currently no way to delay view destruction in Ember. This presents a problem when you want to animate the view before destroying it.
So, I currently have th
This is just an spontaneous idea from my side:
This is the implementation of destroyElement in Ember.View (Link to Source):
destroyElement: function() {
return this.currentState.destroyElement(this);
},
You could try to override this method to do your animation:
destroyElement: function() {
var completeCallback = function(){
return this.currentState.destroyElement(this);
}
this.$().fadeOut(completeCallback); //or whatever animation
},