have revert and cherry pick

This commit is contained in:
Peter Cottle 2013-06-04 15:13:33 -10:00
parent f400ac238e
commit 246753caad
3 changed files with 147 additions and 90 deletions

View file

@ -49,7 +49,7 @@ var makeHighlightAnimation = function(visNode, visBranch) {
animation: function() {
visNode.highlightTo(visBranch, slowTime, 'easeInOut');
},
duration: fullTime * 1.5
duration: slowTime * 1.5
};
};
@ -72,6 +72,22 @@ AnimationFactory.prototype.genCommitBirthPromiseAnimation = function(commit, git
return new PromiseAnimation(makeCommitBirthAnimation(gitVisuals, visNode));
};
AnimationFactory.prototype.highlightEachWithPromise = function(
chain,
toHighlight,
destObj
) {
_.each(toHighlight, function(commit) {
chain = chain.then(_.bind(function() {
return this.playHighlightPromiseAnimation(
commit,
destObj
);
}, this));
}, this);
return chain;
};
AnimationFactory.prototype.playCommitBirthPromiseAnimation = function(commit, gitVisuals) {
var animation = this.genCommitBirthPromiseAnimation(commit, gitVisuals);
animation.play();