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().
This commit is contained in:
Simon Kornblith 2011-02-12 08:33:16 +00:00
parent c668ecab83
commit 2c41bcff56

View File

@ -1732,7 +1732,7 @@ CSL.DateParser = function (txt) {
}; };
CSL.Engine = function (sys, style, lang, forceLang) { CSL.Engine = function (sys, style, lang, forceLang) {
var attrs, langspec, localexml, locale; var attrs, langspec, localexml, locale;
this.processor_version = "1.0.110"; this.processor_version = "1.0.111";
this.csl_version = "1.0"; this.csl_version = "1.0";
this.sys = sys; this.sys = sys;
this.sys.xml = new CSL.System.Xml.Parsing(); 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)); 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 = state.registry.registry[Item.id].disambig.year_suffix.toString();
num = CSL.Util.padding(num); num = CSL.Util.padding(num);
} else { } else {