From 40c87ab14cf4e68481bc7c1ab9d6b96641065918 Mon Sep 17 00:00:00 2001 From: Dave C-J Date: Mon, 25 Aug 2014 15:09:52 +0100 Subject: [PATCH] Make defaults into strings rather than boolean. Fixes #350 --- nodes/core/core/58-debug.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nodes/core/core/58-debug.html b/nodes/core/core/58-debug.html index ba3a0e498..b1db8c454 100644 --- a/nodes/core/core/58-debug.html +++ b/nodes/core/core/58-debug.html @@ -51,9 +51,9 @@ category: 'output', defaults: { name: {value:""}, - active: {value:true}, - console: {value:false}, - complete: {value:false} + active: {value:"true"}, + console: {value:"false"}, + complete: {value:"false"} }, label: function() { return this.name||"debug"; @@ -115,14 +115,14 @@ var sbc = document.getElementById("debug-content"); var messageCount = 0; - + RED._debug = function(msg) { handleDebugMessage("",{ name:"debug", msg:msg }); } - + var handleDebugMessage = function(t,o) { var msg = document.createElement("div"); msg.onmouseover = function() { @@ -148,7 +148,7 @@ if (node) { RED.view.showWorkspace(node.z); } - + }; var name = (o.name?o.name:o.id).toString().replace(/&/g,"&").replace(//g,">"); var topic = (o.topic||"").toString().replace(/&/g,"&").replace(//g,">");