diff --git a/nodes/core/core/25-catch.html b/nodes/core/core/25-catch.html index bc112ffdb..eab10de9a 100644 --- a/nodes/core/core/25-catch.html +++ b/nodes/core/core/25-catch.html @@ -115,7 +115,7 @@ var nodeList = $("#node-input-catch-target-container"); var node = this; function createNodeList() { - node.scope = node.scope || []; + var scope = node.scope || []; nodeList.empty(); var candidateNodes = RED.nodes.filterNodes({z:node.z}); @@ -125,7 +125,7 @@ if (n.id === node.id) { return; } - var isChecked = node.scope.indexOf(n.id) !== -1; + var isChecked = scope.indexOf(n.id) !== -1; allChecked = allChecked && isChecked; diff --git a/nodes/core/core/25-status.html b/nodes/core/core/25-status.html index 869a64e32..872c98e22 100644 --- a/nodes/core/core/25-status.html +++ b/nodes/core/core/25-status.html @@ -106,7 +106,7 @@ var nodeList = $("#node-input-status-target-container"); var node = this; function createNodeList() { - node.scope = node.scope || []; + var scope = node.scope || []; nodeList.empty(); var candidateNodes = RED.nodes.filterNodes({z:node.z}); @@ -116,7 +116,7 @@ if (n.id === node.id) { return; } - var isChecked = node.scope.indexOf(n.id) !== -1; + var isChecked = scope.indexOf(n.id) !== -1; allChecked = allChecked && isChecked;