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

Ensure node.ports is properly intialised

Fixes #766
This commit is contained in:
Nick O'Leary 2015-12-10 10:46:12 +00:00
parent d4ce193dc8
commit 64431c6711

View File

@ -157,6 +157,12 @@ RED.nodes = (function() {
if (n._def.category == "config") {
configNodes[n.id] = n;
} else {
n.ports = [];
if (n.outputs) {
for (var i=0;i<n.outputs;i++) {
n.ports.push(i);
}
}
n.dirty = true;
var updatedConfigNode = false;
for (var d in n._def.defaults) {