From 1c362f642d00f87eff1b13e0e010799332ee23d6 Mon Sep 17 00:00:00 2001 From: Darren Date: Fri, 16 Sep 2011 14:37:51 +0100 Subject: [PATCH] manageDebug() fix --- js/util.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/util.js b/js/util.js index edbc485..4ee8571 100644 --- a/js/util.js +++ b/js/util.js @@ -11,10 +11,10 @@ function manageDebug(debug) { var log, consoleBackUp; if (window.console) { consoleBackUp = window.console.log; - window.console.log = function (str) { + window.console.log = function () { if (debug) { - consoleBackUp.call(this, str); - } + consoleBackUp.apply(console, arguments); + } }; } else { log = window.opera ? window.opera.postError : alert; -- 2.25.1