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

Fix wireClippedNodes is not defined

Fixes #1726
This commit is contained in:
Nick O'Leary 2018-05-12 17:02:07 +01:00
parent 2d5980ff2a
commit cd42cf7583
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -1035,8 +1035,8 @@ RED.nodes = (function() {
node.outputs = n.outputs||node._def.outputs; node.outputs = n.outputs||node._def.outputs;
// If 'wires' is longer than outputs, clip wires // If 'wires' is longer than outputs, clip wires
if (node.hasOwnProperty('wires') && node.wires.length > node.outputs) { if (node.hasOwnProperty('wires') && node.wires.length > node.outputs) {
console.log("Warning: node.wires longer than node.outputs - trimming wires:",node.id," wires:",node.wires.length," outputs:",node.outputs);
node.wires = node.wires.slice(0,node.outputs); node.wires = node.wires.slice(0,node.outputs);
wireClippedNodes.push(node);
} }
for (d in node._def.defaults) { for (d in node._def.defaults) {
if (node._def.defaults.hasOwnProperty(d)) { if (node._def.defaults.hasOwnProperty(d)) {