mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
add extra tests to debug, delay & template
This commit is contained in:
@@ -25,14 +25,11 @@ module.exports = function(RED) {
|
||||
function DebugNode(n) {
|
||||
RED.nodes.createNode(this,n);
|
||||
this.name = n.name;
|
||||
this.complete = n.complete||"payload";
|
||||
this.complete = (n.complete||"payload").toString();
|
||||
|
||||
if (this.complete === "false") {
|
||||
this.complete = "payload";
|
||||
}
|
||||
if (this.complete === true) {
|
||||
this.complete = "true";
|
||||
}
|
||||
|
||||
this.console = n.console;
|
||||
this.active = (n.active === null || typeof n.active === "undefined") || n.active;
|
||||
|
||||
Reference in New Issue
Block a user