mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-29 09:20:03 +02:00
light refactoring download animate was lame actually
This commit is contained in:
parent
0aadae766f
commit
542d68a975
3 changed files with 112 additions and 37 deletions
|
@ -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());
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue