commit 2c41bcff562e719f641de9dd7c74410a0c42d9dd
parent c668ecab833db6f2ece9feea6621c39590c8d2c4
Author: Simon Kornblith <simon@simonster.com>
Date: Sat, 12 Feb 2011 08:33:16 +0000
Update to citeproc-js 1.0.111
From Frank's release notes:
Avoid an error when attempting to sort citations that have not yet
appeared in the registry. This error could be triggered, following a
change made in release 1.0.108, by incremental cite insertion
operations via appendCitationCluster() or processCitationCluster().
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js
@@ -1732,7 +1732,7 @@ CSL.DateParser = function (txt) {
};
CSL.Engine = function (sys, style, lang, forceLang) {
var attrs, langspec, localexml, locale;
- this.processor_version = "1.0.110";
+ this.processor_version = "1.0.111";
this.csl_version = "1.0";
this.sys = sys;
this.sys.xml = new CSL.System.Xml.Parsing();
@@ -3975,7 +3975,7 @@ CSL.Node.key = {
state.output.append(CSL.Util.Dates[e]["numeric-leading-zeros"](state, value));
}
}
- if (state.registry.registry[Item.id].disambig.year_suffix) {
+ if (state.registry.registry[Item.id] && state.registry.registry[Item.id].disambig.year_suffix) {
num = state.registry.registry[Item.id].disambig.year_suffix.toString();
num = CSL.Util.padding(num);
} else {