From 553935ecc824c4e2ae1068992ae99f161bcf4d92 Mon Sep 17 00:00:00 2001 From: Mark Hindess Date: Thu, 4 Sep 2014 19:56:53 +0100 Subject: [PATCH] Correct logic to avoid 'undefined' label style being inserted. --- public/red/ui/view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/red/ui/view.js b/public/red/ui/view.js index 70fbb2870..369b51ba0 100644 --- a/public/red/ui/view.js +++ b/public/red/ui/view.js @@ -1209,7 +1209,7 @@ RED.view = (function() { .attr('class',function(d){ return 'node_label'+ (d._def.align?' node_label_'+d._def.align:'')+ - (d._def.label?' '+(typeof d._def.labelStyle == "function" ? d._def.labelStyle.call(d):d._def.labelStyle):'') ; + (d._def.labelStyle?' '+(typeof d._def.labelStyle == "function" ? d._def.labelStyle.call(d):d._def.labelStyle):'') ; }); thisNode.selectAll(".node_tools").attr("x",function(d){return d.w-35;}).attr("y",function(d){return d.h-20;});