Cleanup closing down of Pi gpio nodes

This commit is contained in:
dceejay
2015-01-29 15:52:57 +00:00
parent ca9d84b1b7
commit cae755d948
2 changed files with 14 additions and 34 deletions

View File

@@ -325,7 +325,11 @@
outputs:1,
icon: "rpi.png",
label: function() {
return this.name||"Pi Mouse" ;
var na = "Pi Mouse";
if (this.butt === "1") { na += " Left"; }
if (this.butt === "2") { na += " Right"; }
if (this.butt === "4") { na += " Middle"; }
return this.name||na;
},
labelStyle: function() {
return this.name?"node_label_italic":"";