www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 1bb6217ec13c406e24357ec9f0abf2286dbe4b04
parent 4032edcf7d9ee959ce64f0e5090a39a05054a36a
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 14 Jun 2017 02:58:24 -0400

Disable debug output for Zotero.Date.strToDate()

Too messy, and unlikely that we need it in submitted output

Diffstat:
Mchrome/content/zotero/xpcom/date.js | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/chrome/content/zotero/xpcom/date.js b/chrome/content/zotero/xpcom/date.js @@ -387,7 +387,7 @@ Zotero.Date = new function(){ if(date.month) date.month--; // subtract one for JS style else delete date.month; - Zotero.debug("DATE: retrieved with algorithms: "+JSON.stringify(date)); + //Zotero.debug("DATE: retrieved with algorithms: "+JSON.stringify(date)); parts.push( { part: m[1], before: true }, @@ -402,7 +402,7 @@ Zotero.Date = new function(){ parts.push({ part: string }); } } else { - Zotero.debug("DATE: could not apply algorithms"); + //Zotero.debug("DATE: could not apply algorithms"); parts.push({ part: string }); } @@ -419,7 +419,7 @@ Zotero.Date = new function(){ { part: m[1], before: true }, { part: m[3] } ); - Zotero.debug("DATE: got year (" + date.year + ", " + JSON.stringify(parts) + ")"); + //Zotero.debug("DATE: got year (" + date.year + ", " + JSON.stringify(parts) + ")"); break; } } @@ -447,7 +447,7 @@ Zotero.Date = new function(){ { part: m[1], before: "m" }, { part: m[3], after: "m" } ); - Zotero.debug("DATE: got month (" + date.month + ", " + JSON.stringify(parts) + ")"); + //Zotero.debug("DATE: got month (" + date.month + ", " + JSON.stringify(parts) + ")"); break; } } @@ -481,7 +481,7 @@ Zotero.Date = new function(){ i, 1, { part: part } ); - Zotero.debug("DATE: got day (" + date.day + ", " + JSON.stringify(parts) + ")"); + //Zotero.debug("DATE: got day (" + date.day + ", " + JSON.stringify(parts) + ")"); break; } }