From f438948660fb9fb83a1ab3e0c2d692415bc26f11 Mon Sep 17 00:00:00 2001 From: Peter Cottle Date: Sun, 2 Jun 2013 17:35:55 -0700 Subject: [PATCH] awesome now we are using it for commit animations --- build/bundle.js | 14 ++++++++++++-- src/js/git/index.js | 7 ++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/build/bundle.js b/build/bundle.js index 75f49ffc..026c9913 100644 --- a/build/bundle.js +++ b/build/bundle.js @@ -7974,7 +7974,12 @@ GitEngine.prototype.commitStarter = function() { newCommit.set('commitMessage', msg); } - this.animationFactory.genCommitBirthAnimation(this.animationQueue, newCommit, this.gitVisuals); + + var promise = this.animationFactory.playCommitBirthPromiseAnimation( + newCommit, + this.gitVisuals + ); + this.animationQueue.thenFinish(promise); }; GitEngine.prototype.commit = function() { @@ -23892,7 +23897,12 @@ GitEngine.prototype.commitStarter = function() { newCommit.set('commitMessage', msg); } - this.animationFactory.genCommitBirthAnimation(this.animationQueue, newCommit, this.gitVisuals); + + var promise = this.animationFactory.playCommitBirthPromiseAnimation( + newCommit, + this.gitVisuals + ); + this.animationQueue.thenFinish(promise); }; GitEngine.prototype.commit = function() { diff --git a/src/js/git/index.js b/src/js/git/index.js index 6915b39e..fac83e56 100644 --- a/src/js/git/index.js +++ b/src/js/git/index.js @@ -921,7 +921,12 @@ GitEngine.prototype.commitStarter = function() { newCommit.set('commitMessage', msg); } - this.animationFactory.genCommitBirthAnimation(this.animationQueue, newCommit, this.gitVisuals); + + var promise = this.animationFactory.playCommitBirthPromiseAnimation( + newCommit, + this.gitVisuals + ); + this.animationQueue.thenFinish(promise); }; GitEngine.prototype.commit = function() {