light refactoring download animate was lame actually

This commit is contained in:
Peter Cottle 2013-07-28 17:03:06 -07:00
parent 0aadae766f
commit 542d68a975
3 changed files with 112 additions and 37 deletions

View file

@ -110,6 +110,7 @@ var PromiseAnimation = Backbone.Model.extend({
throw new Error('need closure or animation');
}
this.set('closure', options.closure || options.animation);
this.set('duration', options.duration || this.get('duration'));
this.set('deferred', options.deferred || Q.defer());
},