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

Add strict flag to debug (for consistency with others)

This commit is contained in:
dceejay 2015-02-08 11:32:26 +00:00
parent 8451c29a25
commit 1513dbfcdd

View File

@ -15,6 +15,7 @@
**/ **/
module.exports = function(RED) { module.exports = function(RED) {
"use strict";
var util = require("util"); var util = require("util");
var events = require("events"); var events = require("events");
var debuglength = RED.settings.debugMaxLength||1000; var debuglength = RED.settings.debugMaxLength||1000;
@ -25,14 +26,14 @@ module.exports = function(RED) {
RED.nodes.createNode(this,n); RED.nodes.createNode(this,n);
this.name = n.name; this.name = n.name;
this.complete = n.complete||"payload"; this.complete = n.complete||"payload";
if (this.complete === "false") { if (this.complete === "false") {
this.complete = "payload"; this.complete = "payload";
} }
if (this.complete === true) { if (this.complete === true) {
this.complete = "true"; this.complete = "true";
} }
this.console = n.console; this.console = n.console;
this.active = (n.active === null || typeof n.active === "undefined") || n.active; this.active = (n.active === null || typeof n.active === "undefined") || n.active;
var node = this; var node = this;