From 39dbdb8483dcb3ff93fdcc901f62f53a4242cae7 Mon Sep 17 00:00:00 2001 From: Frank Date: Sun, 25 Mar 2012 18:41:01 +0800 Subject: [PATCH] Upgrade citeproc-js to version 1.0.311 --- chrome/content/zotero/xpcom/citeproc.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js index 8460bf8b2b..a895e1a6b2 100644 --- a/chrome/content/zotero/xpcom/citeproc.js +++ b/chrome/content/zotero/xpcom/citeproc.js @@ -2159,7 +2159,7 @@ CSL.DateParser = function () { }; CSL.Engine = function (sys, style, lang, forceLang) { var attrs, langspec, localexml, locale; - this.processor_version = "1.0.310"; + this.processor_version = "1.0.311"; this.csl_version = "1.0"; this.sys = sys; this.sys.xml = new CSL.System.Xml.Parsing(); @@ -10188,14 +10188,14 @@ CSL.Util.Suffixator.prototype.format = function (N) { CSL.Engine.prototype.processNumber = function (node, ItemObject, variable) { var num, m, i, ilen, j, jlen; var debug = false; - if (!ItemObject) { - return; - } num = ItemObject[variable]; this.tmp.shadow_numbers[variable] = {}; this.tmp.shadow_numbers[variable].values = []; this.tmp.shadow_numbers[variable].plural = 0; this.tmp.shadow_numbers[variable].numeric = false; + if (!ItemObject) { + return; + } if ("undefined" !== typeof num) { if ("number" === typeof num) { num = "" + num;