1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix jshint errors

This commit is contained in:
Nick O'Leary 2015-01-09 23:30:53 +00:00
parent 83b40a7ba6
commit afb5e8cbce

View File

@ -130,7 +130,6 @@ function createSubflow(sf,sfn,subflows) {
}
}
}
}
Object.keys(modifiedNodes).forEach(function(id) {
var node = modifiedNodes[id];
subflowNode.instanceNodes[id].updateWires(node.wires);
@ -139,6 +138,7 @@ function createSubflow(sf,sfn,subflows) {
subflowNode._updateWires(subflowInstance.wires);
}
}
}
nodes.push(subflowNode);
@ -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<this.config.length;i++) {
var nodeConfig = this.config[i];
var nodeType = nodeConfig.type;
nodeConfig = this.config[i];
nodeType = nodeConfig.type;
if (nodeType == "subflow") {
this.subflows[nodeConfig.id] = {
type: "subflow",
@ -242,11 +244,11 @@ Flow.prototype.parseConfig = function(config) {
//console.log("Known subflows:",Object.keys(this.subflows));
for (i=0;i<this.config.length;i++) {
var nodeConfig = this.config[i];
nodeConfig = this.config[i];
this.allNodes[nodeConfig.id] = nodeConfig;
var nodeType = nodeConfig.type;
nodeType = nodeConfig.type;
if (nodeConfig.credentials) {
credentials.extract(nodeConfig);