Subflow palette node outputs not updating

part of #479
This commit is contained in:
Nick O'Leary 2014-11-07 16:12:27 +00:00
parent 5c5de028da
commit 28da2dc38a
1 changed files with 2 additions and 2 deletions

View File

@ -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);