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

Fix jshint error

This commit is contained in:
Nick O'Leary 2015-02-24 23:06:07 +00:00
parent d148a23ed6
commit 1876b56022

View File

@ -567,6 +567,7 @@ RED.nodes = (function() {
var new_subflows = []; var new_subflows = [];
var subflow_map = {}; var subflow_map = {};
var nid; var nid;
var def;
for (i=0;i<newNodes.length;i++) { for (i=0;i<newNodes.length;i++) {
n = newNodes[i]; n = newNodes[i];
// TODO: remove workspace in next release+1 // TODO: remove workspace in next release+1
@ -609,7 +610,7 @@ RED.nodes = (function() {
new_subflows.push(n); new_subflows.push(n);
addSubflow(n); addSubflow(n);
} else { } else {
var def = registry.getNodeType(n.type); def = registry.getNodeType(n.type);
if (def && def.category == "config") { if (def && def.category == "config") {
if (!RED.nodes.node(n.id)) { if (!RED.nodes.node(n.id)) {
var configNode = {id:n.id,type:n.type,users:[]}; var configNode = {id:n.id,type:n.type,users:[]};
@ -641,7 +642,7 @@ RED.nodes = (function() {
n = newNodes[i]; n = newNodes[i];
// TODO: remove workspace in next release+1 // TODO: remove workspace in next release+1
if (n.type !== "workspace" && n.type !== "tab" && n.type !== "subflow") { if (n.type !== "workspace" && n.type !== "tab" && n.type !== "subflow") {
var def = registry.getNodeType(n.type); def = registry.getNodeType(n.type);
if (!def || def.category != "config") { if (!def || def.category != "config") {
var node = {x:n.x,y:n.y,z:n.z,type:0,wires:n.wires,changed:false}; var node = {x:n.x,y:n.y,z:n.z,type:0,wires:n.wires,changed:false};
if (createNewIds) { if (createNewIds) {