Fix jshint errors

This commit is contained in:
Nick O'Leary
2015-08-13 22:18:47 +01:00
parent 3a6192bf73
commit 00c612485b
3 changed files with 7 additions and 5 deletions

View File

@@ -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({

View File

@@ -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);
}