From 0a78838c719548d8eb96060ce0d0730e84ff2a5f Mon Sep 17 00:00:00 2001 From: Dave C-J Date: Sun, 24 Nov 2013 22:22:35 +0000 Subject: [PATCH] Add default name to switch node (for when name not specified - to be more consistent with other nodes) --- nodes/core/logic/10-switch.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/core/logic/10-switch.html b/nodes/core/logic/10-switch.html index bc59f7c94..e717de868 100644 --- a/nodes/core/logic/10-switch.html +++ b/nodes/core/logic/10-switch.html @@ -60,7 +60,7 @@ outputs: 1, icon: "switch.png", label: function() { - return this.name; + return this.name||"switch"; }, oneditprepare: function() {