From 64431c6711e073111cda26a43ce6c4b8aa6488cc Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 10 Dec 2015 10:46:12 +0000 Subject: [PATCH] Ensure node.ports is properly intialised Fixes #766 --- editor/js/nodes.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/editor/js/nodes.js b/editor/js/nodes.js index 1c56f43d1..305f17185 100644 --- a/editor/js/nodes.js +++ b/editor/js/nodes.js @@ -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