From 0f33ced7ef3e2729c5e31733990dd7c60e0720ad Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 10 Apr 2012 20:38:00 +0200 Subject: Higher versions of Firefox are even more strict about undefined variables. We cannot apparently add a method to console. Oh well. Also a general cleanup (Eclipse had some complaints). Closes #121 --- data/lib/util.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'data/lib/util.js') 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 -- cgit