ok, decoupled vis details from git engine. now for big switch away from arbor.js to raphael with my own tree drawing algorithm. deep breath......

This commit is contained in:
Peter Cottle 2012-09-16 10:18:58 -07:00
parent cf8e8557f3
commit f5fcd32815
3 changed files with 28 additions and 7 deletions

View file

@ -818,11 +818,12 @@ var Commit = Backbone.Model.extend({
},
addNodeToVisuals: function() {
this.set('arborNode', sys.addNode(this.get('id')));
var visNode = gitVisuals.addNode(this.get('id'));
this.set('visNode', visNode);
},
addEdgeToVisuals: function(parent) {
sys.addEdge(this.get('arborNode'), parent.get('arborNode'));
gitVisuals.addEdge(this.get('id'), parent.get('id'));
},
initialize: function() {