mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-09 14:14:27 +02:00
in the midle of teamwork reorg why does promise not defer?
This commit is contained in:
parent
292126437a
commit
bf6f987482
4 changed files with 129 additions and 58 deletions
|
@ -102,6 +102,10 @@ var PromiseAnimation = Backbone.Model.extend({
|
|||
this.set('deferred', options.deferred || Q.defer());
|
||||
},
|
||||
|
||||
getPromise: function() {
|
||||
return this.get('deferred').promise;
|
||||
},
|
||||
|
||||
play: function() {
|
||||
// a single animation is just something with a timeout, but now
|
||||
// we want to resolve a deferred when the animation finishes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue