mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-29 17:27:22 +02:00
damnit text nodes wtf
This commit is contained in:
parent
88f5c2d2b3
commit
095c17218d
1 changed files with 4 additions and 1 deletions
|
@ -342,7 +342,10 @@ var VisNode = VisBase.extend({
|
||||||
remove: function() {
|
remove: function() {
|
||||||
this.removeKeys(['circle'], ['text']);
|
this.removeKeys(['circle'], ['text']);
|
||||||
// needs a manual removal of text for whatever reason
|
// needs a manual removal of text for whatever reason
|
||||||
this.get('text').remove();
|
var text = this.get('text');
|
||||||
|
if (text) {
|
||||||
|
text.remove();
|
||||||
|
}
|
||||||
|
|
||||||
this.gitVisuals.removeVisNode(this);
|
this.gitVisuals.removeVisNode(this);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue