ugly ugly bug with circular fields

This commit is contained in:
Peter Cottle 2013-10-06 15:12:21 -07:00
parent 1ed8a2524a
commit bbf837a4b2
6 changed files with 36 additions and 18 deletions

View file

@ -138,6 +138,9 @@ AnimationFactory.refreshTree = function(animationQueue, gitVisuals) {
AnimationFactory.genHighlightPromiseAnimation = function(commit, destObj) {
// could be branch or node
var visObj = destObj.get('visBranch') || destObj.get('visNode');
if (!visObj) {
debugger;
}
var visNode = commit.get('visNode');
return new PromiseAnimation(makeHighlightAnimation(visNode, visObj));
};

View file

@ -60,6 +60,12 @@ var VisBranch = VisBase.extend({
}
this.get('branch').set('visBranch', this);
if (this.get('branch').get('id') === 'o/master') {
console.log('set visbranch on this', this.get('branch'), this);
window.debugVisBranch = this;
window.debugBranch = this.get('branch');
debugger;
}
var id = this.get('branch').get('id');
if (id == 'HEAD') {

View file

@ -141,9 +141,6 @@ var VisNode = VisBase.extend({
},
highlightTo: function(visObj, speed, easing) {
if (!visObj) {
debugger;
}
// a small function to highlight the color of a node for demonstration purposes
var color = visObj.get('fill');