mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-14 16:44:26 +02:00
refresh fromt ree bug and clicik bug
This commit is contained in:
parent
a83a12b211
commit
4db83ba808
6 changed files with 31 additions and 64 deletions
|
@ -55,8 +55,7 @@ var VisBranch = VisBase.extend({
|
|||
this.gitVisuals = this.get('gitVisuals');
|
||||
this.gitEngine = this.get('gitEngine');
|
||||
if (!this.gitEngine) {
|
||||
console.log('throw damnit');
|
||||
throw new Error('asd');
|
||||
throw new Error('asd wtf');
|
||||
}
|
||||
|
||||
this.get('branch').set('visBranch', this);
|
||||
|
@ -200,7 +199,7 @@ var VisBranch = VisBase.extend({
|
|||
|
||||
getTextSize: function() {
|
||||
var getTextWidth = function(visBranch) {
|
||||
var textNode = visBranch.get('text').node;
|
||||
var textNode = (visBranch.get('text')) ? visBranch.get('text').node : null;
|
||||
return (textNode === null) ? 0 : textNode.clientWidth;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue