diff --git a/build/bundle.js b/build/bundle.js index 3ef67e89..28b017db 100644 --- a/build/bundle.js +++ b/build/bundle.js @@ -7306,14 +7306,14 @@ GitEngine.prototype.makeOrigin = function(treeString) { }); // defer the starting of our animation until origin has been created - this.animationQueue.set('defer', true); + this.animationQueue.set('promiseBased', true); originVis.customEvents.on('gitEngineReady', function() { this.origin = originVis.gitEngine; originVis.gitEngine.assignLocalRepo(this); // and then here is the crazy part -- we need the ORIGIN to refresh // itself in a separate animation. @_____@ this.origin.externalRefresh(); - this.animationQueue.start(); + this.animationFactory.playRefreshAnimationAndFinish(this.gitVisuals, this.animationQueue); }, this); // TODO handle the case where the master target on origin is not present @@ -7326,8 +7326,6 @@ GitEngine.prototype.makeOrigin = function(treeString) { this.getCommitFromRef(originMasterTarget) ); originMaster.set('remote', true); - - this.animationFactory.playRefreshAnimationAndFinish(this.gitVisuals, this.animationQueue); }; GitEngine.prototype.getOrMakeRecursive = function(tree, createdSoFar, objID) { @@ -23238,14 +23236,14 @@ GitEngine.prototype.makeOrigin = function(treeString) { }); // defer the starting of our animation until origin has been created - this.animationQueue.set('defer', true); + this.animationQueue.set('promiseBased', true); originVis.customEvents.on('gitEngineReady', function() { this.origin = originVis.gitEngine; originVis.gitEngine.assignLocalRepo(this); // and then here is the crazy part -- we need the ORIGIN to refresh // itself in a separate animation. @_____@ this.origin.externalRefresh(); - this.animationQueue.start(); + this.animationFactory.playRefreshAnimationAndFinish(this.gitVisuals, this.animationQueue); }, this); // TODO handle the case where the master target on origin is not present @@ -23258,8 +23256,6 @@ GitEngine.prototype.makeOrigin = function(treeString) { this.getCommitFromRef(originMasterTarget) ); originMaster.set('remote', true); - - this.animationFactory.playRefreshAnimationAndFinish(this.gitVisuals, this.animationQueue); }; GitEngine.prototype.getOrMakeRecursive = function(tree, createdSoFar, objID) { diff --git a/src/js/git/index.js b/src/js/git/index.js index 2ffa5c3d..ece3bcbd 100644 --- a/src/js/git/index.js +++ b/src/js/git/index.js @@ -253,14 +253,14 @@ GitEngine.prototype.makeOrigin = function(treeString) { }); // defer the starting of our animation until origin has been created - this.animationQueue.set('defer', true); + this.animationQueue.set('promiseBased', true); originVis.customEvents.on('gitEngineReady', function() { this.origin = originVis.gitEngine; originVis.gitEngine.assignLocalRepo(this); // and then here is the crazy part -- we need the ORIGIN to refresh // itself in a separate animation. @_____@ this.origin.externalRefresh(); - this.animationQueue.start(); + this.animationFactory.playRefreshAnimationAndFinish(this.gitVisuals, this.animationQueue); }, this); // TODO handle the case where the master target on origin is not present @@ -273,8 +273,6 @@ GitEngine.prototype.makeOrigin = function(treeString) { this.getCommitFromRef(originMasterTarget) ); originMaster.set('remote', true); - - this.animationFactory.playRefreshAnimationAndFinish(this.gitVisuals, this.animationQueue); }; GitEngine.prototype.getOrMakeRecursive = function(tree, createdSoFar, objID) {