UI refactor to less gloabl

This commit is contained in:
Peter Cottle 2012-11-03 16:05:44 -07:00
parent 1d476af467
commit 4e30d1b511
4 changed files with 18 additions and 22 deletions

View file

@ -25,15 +25,18 @@ var Visualization = Backbone.View.extend({
branches: this.branchCollection,
gitVisuals: this.gitVisuals
});
this.gitEngine.init();
this.gitVisuals.assignGitEngine(this.gitEngine);
// needs to be called before raphael ready
this.myResize();
$(window).on('resize', _.bind(this.myResize, this));
this.gitVisuals.drawTreeFirstTime();
},
myResize: function() {
var smaller = 10;
var smaller = 1;
var el = this.el;
var left = el.offsetLeft;