mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-29 17:27:22 +02:00
promise animation
This commit is contained in:
parent
dbdb37099d
commit
d208905b77
1 changed files with 2 additions and 0 deletions
|
@ -107,8 +107,10 @@ var PromiseAnimation = Backbone.Model.extend({
|
||||||
// we want to resolve a deferred when the animation finishes
|
// we want to resolve a deferred when the animation finishes
|
||||||
this.get('closure')();
|
this.get('closure')();
|
||||||
setTimeout(_.bind(function() {
|
setTimeout(_.bind(function() {
|
||||||
|
console.log('resolving deferred');
|
||||||
this.get('deferred').resolve();
|
this.get('deferred').resolve();
|
||||||
}, this), this.get('duration'));
|
}, this), this.get('duration'));
|
||||||
|
console.log('the duration', this.get('duration'));
|
||||||
},
|
},
|
||||||
|
|
||||||
then: function() {
|
then: function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue