From afb5e8cbcec227451b20b97c572db70fb3b85c93 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 9 Jan 2015 23:30:53 +0000 Subject: [PATCH] Fix jshint errors --- red/nodes/Flow.js | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) 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