Feedback:
Modifying outputs
in the html file is the correct way, and of course to address the outputs in the JS file where necessary.
self.send([msg,undefined]) /* 1st output only */
self.send([undefined,msg]) /* 2nd output only */
I think in this case, defining a new msg
is not harmful
var msg = {};
But normally, you should append to/modify the incoming msg
, not destroy it entirely - but as said, there is no originating msg
for this.
PR your changes back to the original project - as others may find it useful, or if it's no longer maintained, fork it and create a derived alternative for download.
EDIT
Also to label the outputs (I often forget about that until the end)
outputs 2,
outputLabels: ['Sheldon', 'Cooper']