diff options
author | Matěj Cepl <mcepl@redhat.com> | 2012-04-10 20:38:00 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2012-04-10 20:49:13 +0200 |
commit | 0f33ced7ef3e2729c5e31733990dd7c60e0720ad (patch) | |
tree | 6eda81344549dd27471d038ecfe32e0aff66c384 /data/lib/util.js | |
parent | fb662574627c9bc3477ccfaacd4e96bfda1f3e29 (diff) | |
download | bugzilla-triage-0f33ced7ef3e2729c5e31733990dd7c60e0720ad.tar.gz |
Higher versions of Firefox are even more strict about undefined variables.1.6
We cannot apparently add a method to console. Oh well.
Also a general cleanup (Eclipse had some complaints).
Closes #121
Diffstat (limited to 'data/lib/util.js')
-rw-r--r-- | data/lib/util.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/data/lib/util.js b/data/lib/util.js index 35150d5..2782f0c 100644 --- a/data/lib/util.js +++ b/data/lib/util.js @@ -224,7 +224,7 @@ function getISODate(dateStr) { */ function ISODateString(d) { function pad(n) { - return n<10 ? '0'+n : n + return (n<10 ? '0'+n : n); } return d.getUTCFullYear()+'-' @@ -401,10 +401,10 @@ NotLoggedinException.prototype.toString = function () { return this.name + ': "' + this.message + '"'; }; -console.myDebug = function myDebug(str) { +function myDebug(str) { if (typeof config !== "undefined") { if (config.debuggingVerbose) { console.log(str); } } -}; +}
\ No newline at end of file |