diff --git a/red/nodes/Flow.js b/red/nodes/Flow.js index 57e23184e..8df35c88e 100644 --- a/red/nodes/Flow.js +++ b/red/nodes/Flow.js @@ -130,13 +130,13 @@ function createSubflow(sf,sfn,subflows) { } } } - } - Object.keys(modifiedNodes).forEach(function(id) { - var node = modifiedNodes[id]; - subflowNode.instanceNodes[id].updateWires(node.wires); - }); - if (subflowInstanceModified) { - subflowNode._updateWires(subflowInstance.wires); + Object.keys(modifiedNodes).forEach(function(id) { + var node = modifiedNodes[id]; + subflowNode.instanceNodes[id].updateWires(node.wires); + }); + if (subflowInstanceModified) { + subflowNode._updateWires(subflowInstance.wires); + } } } @@ -217,8 +217,10 @@ function Flow(config) { Flow.prototype.parseConfig = function(config) { var i; - this.config = config; + var nodeConfig; + var nodeType; + this.config = config; this.allNodes = {}; @@ -228,8 +230,8 @@ Flow.prototype.parseConfig = function(config) { var unknownTypes = {}; for (i=0;i