From ec0209b1758b53740739500bc5deb2a90c95576d Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 9 Feb 2017 23:24:16 +0000 Subject: [PATCH] Allow a node to override default labels --- editor/js/ui/view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/js/ui/view.js b/editor/js/ui/view.js index bac1d6566..b076d9d55 100644 --- a/editor/js/ui/view.js +++ b/editor/js/ui/view.js @@ -1512,7 +1512,7 @@ RED.view = (function() { function portMouseOver(port,d,portType,portIndex) { clearTimeout(portLabelHoverTimeout); var active = (mouse_mode!=RED.state.JOINING || (drag_lines.length > 0 && drag_lines[0].portType !== portType)); - if (active && ((portType === PORT_TYPE_INPUT && d._def.inputLabels) || (portType === PORT_TYPE_OUTPUT && d._def.outputLabels))) { + if (active && ((portType === PORT_TYPE_INPUT && (d._def.inputLabels||d.inputLabels)) || (portType === PORT_TYPE_OUTPUT && (d._def.outputLabels||d.outputLabels)))) { portLabelHoverTimeout = setTimeout(function() { var tooltip = getPortLabel(d,portType,portIndex); if (!tooltip) {