commit 376ecba496a9cadaca5cbe4c36c6212b7ae54d52
parent 0e9505a2c5137cb054c46f3f6d12bee12ac79300
Author: Frank <biercenator@gmail.com>
Date: Wed, 18 Jan 2012 16:32:12 +0800
Upgrade citeproc-js to version 1.0.263
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js
@@ -1979,7 +1979,7 @@ CSL.DateParser = function () {
};
CSL.Engine = function (sys, style, lang, forceLang) {
var attrs, langspec, localexml, locale;
- this.processor_version = "1.0.262";
+ this.processor_version = "1.0.263";
this.csl_version = "1.0";
this.sys = sys;
this.sys.xml = new CSL.System.Xml.Parsing();
@@ -11383,6 +11383,7 @@ CSL.Disambiguation.prototype.disNames = function (ismax) {
this.state.registry.registerAmbigToken(this.akey, "" + this.nonpartners[0].id, this.betterbase);
this.lists[this.listpos] = [this.base, this.partners];
} else if (this.clashes[1] < this.clashes[0]) {
+ this.betterbase = CSL.cloneAmbigConfig(this.base);
this.lists[this.listpos] = [this.base, this.partners];
this.lists.push([this.base, this.nonpartners]);
} else {
@@ -11441,7 +11442,7 @@ CSL.Disambiguation.prototype.disYears = function () {
};
CSL.Disambiguation.prototype.incrementDisambig = function () {
var val, maxed;
- maxed = false;
+ var maxed = false;
if ("disNames" === this.modes[this.modeindex]) {
var increment_name = false;
var increment_nameset = false;
@@ -11482,6 +11483,7 @@ CSL.Disambiguation.prototype.incrementDisambig = function () {
}
} else {
maxed = true;
+ this.base = CSL.cloneAmbigConfig(this.betterbase);
if (this.modeindex < this.modes.length - 1) {
this.modeindex += 1;
}