From 45a868bbfbde21d9bfbbce499f1ee4739b274c45 Mon Sep 17 00:00:00 2001 From: nicolasferry Date: Thu, 29 Mar 2018 13:57:03 +0200 Subject: [PATCH] small test --- red/runtime/nodes/flows/Flow.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/red/runtime/nodes/flows/Flow.js b/red/runtime/nodes/flows/Flow.js index f090fcbb6f..f3619a8133 100644 --- a/red/runtime/nodes/flows/Flow.js +++ b/red/runtime/nodes/flows/Flow.js @@ -102,15 +102,15 @@ function Flow(global, flow) { } } else { if (modules[j].id.indexOf(node.type) >= 0) { //if the type of the node being loaded is equal to the plugin name then use the plugin + newNode = createNode(node.type, node); + console.log("id : "+id); + console.log("Type : "+node.type); + console.log("node : "+JSON.stringify(node)); + console.log("node : "+JSON.stringify(newNode)); + if (newNode) { + activeNodes[id] = newNode; + } modules[j].module.deploy(node, function (node, id) { - newNode = createNode(node.type, node); - console.log("id : "+id); - console.log("Type : "+node.type); - console.log("node : "+JSON.stringify(node)); - console.log("node : "+JSON.stringify(newNode)); - if (newNode) { - activeNodes[id] = newNode; - } console.log("length: "+JSON.stringify(activeNodes[id])); }, id); break;