promise animation

This commit is contained in:
Peter Cottle 2013-06-02 16:26:36 -07:00
parent dbdb37099d
commit d208905b77

View file

@ -107,8 +107,10 @@ var PromiseAnimation = Backbone.Model.extend({
// we want to resolve a deferred when the animation finishes
this.get('closure')();
setTimeout(_.bind(function() {
console.log('resolving deferred');
this.get('deferred').resolve();
}, this), this.get('duration'));
console.log('the duration', this.get('duration'));
},
then: function() {