mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 16:08:34 +02:00
UI refactor to less gloabl
This commit is contained in:
parent
1d476af467
commit
4e30d1b511
4 changed files with 18 additions and 22 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue