From 9a2e436b841d7c0d9d162b1d386a4316c7feb62e Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 21 Apr 2011 16:26:10 +0200 Subject: debugFlag must be in util.js as well. --- data/lib/util.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'data/lib/util.js') diff --git a/data/lib/util.js b/data/lib/util.js index fa111aa..5b628cf 100644 --- a/data/lib/util.js +++ b/data/lib/util.js @@ -356,6 +356,9 @@ NotLoggedinException.prototype.toString = function () { return this.name + ': "' + this.message + '"'; }; +// Are we debugging? +var debugFlag = false; + console.myDebug = function myDebug(str) { if (debugFlag) { console.log(str); -- cgit