mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 07:58:34 +02:00
first level :DDDDDD
This commit is contained in:
parent
d400158781
commit
984f139245
6 changed files with 5023 additions and 4758 deletions
|
@ -138,6 +138,7 @@ GitVisuals.prototype.animateAllAttrKeys = function(keys, attr, speed, easing) {
|
|||
GitVisuals.prototype.finishAnimation = function() {
|
||||
var _this = this;
|
||||
var deferred = Q.defer();
|
||||
var animationDone = Q.defer();
|
||||
var defaultTime = GRAPHICS.defaultAnimationTime;
|
||||
var nodeRadius = GRAPHICS.nodeRadius;
|
||||
|
||||
|
@ -218,13 +219,17 @@ GitVisuals.prototype.finishAnimation = function() {
|
|||
{}
|
||||
);
|
||||
}, this))
|
||||
.then(function() {
|
||||
animationDone.resolve();
|
||||
})
|
||||
.fail(function(reason) {
|
||||
console.warn('Finish animation failed due to ', reason);
|
||||
throw reason;
|
||||
});
|
||||
console.warn('animation error' + reason);
|
||||
})
|
||||
.done();
|
||||
|
||||
deferred.resolve(); // start right away
|
||||
return deferred.promise;
|
||||
// start our animation chain right away
|
||||
deferred.resolve();
|
||||
return animationDone.promise;
|
||||
};
|
||||
|
||||
GitVisuals.prototype.explodeNodes = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue