From f3ba225f6f298f4fed43916ddeac75b65fb217f1 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 4 Feb 2010 23:44:04 +0000 Subject: [PATCH] Second part of numeric-leading-zeros fix --- chrome/content/zotero/xpcom/csl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/csl.js b/chrome/content/zotero/xpcom/csl.js index 2267ddfb9..ddde19d21 100644 --- a/chrome/content/zotero/xpcom/csl.js +++ b/chrome/content/zotero/xpcom/csl.js @@ -986,7 +986,7 @@ Zotero.CSL.prototype._processElements = function(item, element, formattedString, } else if(part == "day") { string = string.toString(); if(newForm == "numeric-leading-zeros" - && string.length() == 1) { + && string.length == 1) { string = "0" + string; } else if (newForm == "ordinal") { var ind = parseInt(string);