mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-04 11:44:27 +02:00
know why its beause git engine ready is async and we dont have origin until that fires so animation gets messed up
This commit is contained in:
parent
f438948660
commit
b69c35d548
3 changed files with 33 additions and 6 deletions
|
@ -70,6 +70,16 @@ AnimationFactory.prototype.playCommitBirthPromiseAnimation = function(commit, gi
|
|||
return animation.getPromise();
|
||||
};
|
||||
|
||||
AnimationFactory.prototype.playRefreshAnimationAndFinish = function(gitVisuals, animationQueue) {
|
||||
var animation = new PromiseAnimation({
|
||||
closure: function() {
|
||||
gitVisuals.refreshTree();
|
||||
}
|
||||
});
|
||||
animation.play();
|
||||
animationQueue.thenFinish(animation.getPromise());
|
||||
};
|
||||
|
||||
AnimationFactory.prototype.overrideOpacityDepth2 = function(attr, opacity) {
|
||||
opacity = (opacity === undefined) ? 1 : opacity;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue