From 1513dbfcdd21e213033bb8fd68a4566fbedfe41f Mon Sep 17 00:00:00 2001 From: dceejay Date: Sun, 8 Feb 2015 11:32:26 +0000 Subject: [PATCH] Add strict flag to debug (for consistency with others) --- nodes/core/core/58-debug.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nodes/core/core/58-debug.js b/nodes/core/core/58-debug.js index c7fca818a..33bbea39b 100644 --- a/nodes/core/core/58-debug.js +++ b/nodes/core/core/58-debug.js @@ -15,6 +15,7 @@ **/ module.exports = function(RED) { + "use strict"; var util = require("util"); var events = require("events"); var debuglength = RED.settings.debugMaxLength||1000; @@ -25,14 +26,14 @@ module.exports = function(RED) { RED.nodes.createNode(this,n); this.name = n.name; this.complete = n.complete||"payload"; - + 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; var node = this;