mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Fix jshint errors
This commit is contained in:
@@ -271,8 +271,9 @@ RED.editor = (function() {
|
||||
RED.nodes.dirty(true);
|
||||
|
||||
var activeSubflow = RED.nodes.subflow(RED.workspaces.active());
|
||||
var subflowInstances = null;
|
||||
if (activeSubflow) {
|
||||
var subflowInstances = [];
|
||||
subflowInstances = [];
|
||||
RED.nodes.eachNode(function(n) {
|
||||
if (n.type == "subflow:"+RED.workspaces.active()) {
|
||||
subflowInstances.push({
|
||||
|
@@ -754,6 +754,7 @@ RED.view = (function() {
|
||||
redraw();
|
||||
}
|
||||
function deleteSelection() {
|
||||
var result;
|
||||
var removedNodes = [];
|
||||
var removedLinks = [];
|
||||
var removedSubflowOutputs = [];
|
||||
@@ -784,14 +785,14 @@ RED.view = (function() {
|
||||
}
|
||||
}
|
||||
if (removedSubflowOutputs.length > 0) {
|
||||
var result = RED.subflow.removeOutput(removedSubflowOutputs);
|
||||
result = RED.subflow.removeOutput(removedSubflowOutputs);
|
||||
if (result) {
|
||||
removedLinks = removedLinks.concat(result.links);
|
||||
}
|
||||
}
|
||||
// Assume 0/1 inputs
|
||||
if (removedSubflowInputs.length == 1) {
|
||||
var result = RED.subflow.removeInput();
|
||||
result = RED.subflow.removeInput();
|
||||
if (result) {
|
||||
removedLinks = removedLinks.concat(result.links);
|
||||
}
|
||||
|
Reference in New Issue
Block a user