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