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() {