From 28da2dc38af782f447ba4a4a40c2fece8f02f99e Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 7 Nov 2014 16:12:27 +0000 Subject: [PATCH] Subflow palette node outputs not updating part of #479 --- public/red/ui/palette.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/red/ui/palette.js b/public/red/ui/palette.js index e0fbcc9c4..c074b8dcb 100644 --- a/public/red/ui/palette.js +++ b/public/red/ui/palette.js @@ -208,11 +208,11 @@ RED.palette = (function() { portInput.remove(); } - if (portOutput === 0 && sf.out.length > 0) { + if (portOutput.length === 0 && sf.out.length > 0) { var portOut = document.createElement("div"); portOut.className = "palette_port palette_port_output"; paletteNode.append(portOut); - } else if (portOutput !== 0 && sf.out.length === 0) { + } else if (portOutput.length !== 0 && sf.out.length === 0) { portOutput.remove(); } setLabel(sf.type+":"+sf.id,paletteNode,sf.name);