[Hackathon] Hg mode initial

This commit is contained in:
Peter Cottle 2013-07-31 13:44:13 -07:00
parent 52c6579fae
commit 0f1c9c4e7a
15 changed files with 443 additions and 26 deletions

View file

@ -103,10 +103,16 @@ AnimationFactory.playRefreshAnimationAndFinish = function(gitVisuals, animationQ
animationQueue.thenFinish(animation.getPromise());
};
AnimationFactory.playRefreshAnimation = function(gitVisuals) {
AnimationFactory.playRefreshAnimationSlow = function(gitVisuals) {
var time = GRAPHICS.defaultAnimationTime;
return this.playRefreshAnimation(gitVisuals, time * 2);
};
AnimationFactory.playRefreshAnimation = function(gitVisuals, speed) {
var animation = new PromiseAnimation({
duration: speed,
closure: function() {
gitVisuals.refreshTree();
gitVisuals.refreshTree(speed)
}
});
animation.play();

View file

@ -631,7 +631,7 @@ GitVisuals.prototype.removeVisBranch = function(visBranch) {
};
GitVisuals.prototype.removeVisNode = function(visNode) {
this.visNodeMap[visNode.getID()] = undefined;
delete this.visNodeMap[visNode.getID()];
};
GitVisuals.prototype.removeVisEdge = function(visEdge) {