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

Add default name to switch node (for when name not specified - to be more consistent with other nodes)

This commit is contained in:
Dave C-J 2013-11-24 22:22:35 +00:00
parent 873974478a
commit 0a78838c71

View File

@ -60,7 +60,7 @@
outputs: 1,
icon: "switch.png",
label: function() {
return this.name;
return this.name||"switch";
},
oneditprepare: function() {