From 98c539f662f3e4fd1fc27deaa8129669e12e8b14 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 4 Jan 2016 22:05:17 +0000 Subject: [PATCH] Refresh active nodes when node properties change --- editor/js/ui/editor.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/editor/js/ui/editor.js b/editor/js/ui/editor.js index abc879fa3..0fdb23aaf 100644 --- a/editor/js/ui/editor.js +++ b/editor/js/ui/editor.js @@ -150,9 +150,9 @@ RED.editor = (function() { node.ports.pop(); } RED.nodes.eachLink(function(l) { - if (l.source === node && l.sourcePort >= node.outputs) { - removedLinks.push(l); - } + if (l.source === node && l.sourcePort >= node.outputs) { + removedLinks.push(l); + } }); } else if (node.outputs > node.ports.length) { while (node.outputs > node.ports.length) { @@ -305,7 +305,7 @@ RED.editor = (function() { } editing_node.dirty = true; validateNode(editing_node); - RED.view.redraw(); + RED.view.redraw(true); } $( this ).dialog( "close" ); } @@ -1079,7 +1079,7 @@ RED.editor = (function() { RED.history.push(historyEvent); } editing_node.dirty = true; - RED.view.redraw(); + RED.view.redraw(true); } $( this ).dialog( "close" ); }