aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-04-21 16:26:10 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:45:52 +0200
commit9a2e436b841d7c0d9d162b1d386a4316c7feb62e (patch)
tree5dd687bdcfb1368bb8b59c46d8d6fe19962ad99b /data/lib
parent15c6a56eba1600ed23c29c6d769e49221fb000ce (diff)
downloadbugzilla-triage-9a2e436b841d7c0d9d162b1d386a4316c7feb62e.tar.gz
debugFlag must be in util.js as well.
Diffstat (limited to 'data/lib')
-rw-r--r--data/lib/rhbzpage.js3
-rw-r--r--data/lib/util.js3
2 files changed, 3 insertions, 3 deletions
diff --git a/data/lib/rhbzpage.js b/data/lib/rhbzpage.js
index e0c5cec..6b8ee9f 100644
--- a/data/lib/rhbzpage.js
+++ b/data/lib/rhbzpage.js
@@ -1,9 +1,6 @@
// Released under the MIT/X11 license
// http://www.opensource.org/licenses/mit-license.php
-// Are we debugging?
-var debugFlag = false;
-
// For identification of graphics card
var manuChipStrs = [ [ "ATI Radeon", "ATI", "1002" ],
[ "ATI Mobility Radeon", "ATI", "1002" ],
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);