Upgrade citeproc-js to version 1.0.292

This commit is contained in:
Frank 2012-02-27 00:51:59 +08:00 committed by Simon Kornblith
parent e35e059c03
commit 2de4ab7e8e

View file

@ -2149,7 +2149,7 @@ CSL.DateParser = function () {
}; };
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.291"; this.processor_version = "1.0.292";
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();
@ -7304,6 +7304,7 @@ CSL.Node.number = {
if (newstr && !newstr.match(/^[-.\u20130-9]+$/)) { if (newstr && !newstr.match(/^[-.\u20130-9]+$/)) {
state.output.append(newstr, this); state.output.append(newstr, this);
} else { } else {
if (values.length) {
state.output.openLevel("empty"); state.output.openLevel("empty");
for (var i = 0, ilen = values.length; i < ilen; i += 1) { for (var i = 0, ilen = values.length; i < ilen; i += 1) {
var blob = new CSL[values[i][0]](values[i][1], values[i][2], Item.id); var blob = new CSL[values[i][0]](values[i][1], values[i][2], Item.id);
@ -7317,6 +7318,7 @@ CSL.Node.number = {
} }
state.output.closeLevel("empty"); state.output.closeLevel("empty");
} }
}
state.parallel.CloseVariable("number"); state.parallel.CloseVariable("number");
}; };
this.execs.push(func); this.execs.push(func);