From 879ed11b69e48b1cdd6dcab33753895350bd6243 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 22 Aug 2017 12:18:29 +0200 Subject: [PATCH] Update citeproc-js to 1.1.175 --- chrome/content/zotero/xpcom/citeproc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js index dcf40a38e0..e9e75f487b 100644 --- a/chrome/content/zotero/xpcom/citeproc.js +++ b/chrome/content/zotero/xpcom/citeproc.js @@ -24,7 +24,7 @@ */ 'use strict' var CSL = { - PROCESSOR_VERSION: "1.1.174", + PROCESSOR_VERSION: "1.1.175", CONDITION_LEVEL_TOP: 1, CONDITION_LEVEL_BOTTOM: 2, PLAIN_HYPHEN_REGEX: /(?:[^\\]-|\u2013)/, @@ -3911,7 +3911,7 @@ CSL.Output.Queue.prototype.string = function (state, myblobs, blob) { } ret = ret.concat(addtoret); } - if (blobjr.strings.first_blob) { + if (blobjr.strings.first_blob && state.registry.registry[blobjr.strings.first_blob]) { state.registry.registry[blobjr.strings.first_blob].offset = state.tmp.offset_characters; state.tmp.count_offset_characters = false; } @@ -5846,7 +5846,7 @@ CSL.citeStart = function (Item, item, blockShadowNumberReset) { this.tmp.authority_stop_last = 0; }; CSL.citeEnd = function (Item, item) { - if (this.tmp.disambig_restore) { + if (this.tmp.disambig_restore && this.registry.registry[Item.id]) { this.registry.registry[Item.id].disambig.names = this.tmp.disambig_restore.names.slice(); this.registry.registry[Item.id].disambig.givens = this.tmp.disambig_restore.givens.slice(); for (var i=0,ilen=this.registry.registry[Item.id].disambig.givens.length;i