damnit text nodes wtf

This commit is contained in:
Peter Cottle 2013-01-16 15:02:23 -08:00
parent 88f5c2d2b3
commit 095c17218d

View file

@ -342,7 +342,10 @@ var VisNode = VisBase.extend({
remove: function() {
this.removeKeys(['circle'], ['text']);
// 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);
},