www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 00e52ae62b2e84d7fa770ca2f61d1b3b36f156bf
parent bb925723fdc8253fff8ab400b5a27cb4906bcf51
Author: Adomas VenĨkauskas <adomas.ven@gmail.com>
Date:   Thu, 15 Feb 2018 12:26:50 +0200

Improves citation processing speed

Prevents from unnecesarily sending the same citation to citeproc
multiple times

Diffstat:
Mchrome/content/zotero/xpcom/integration.js | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js @@ -1553,6 +1553,8 @@ Zotero.Integration.Session.prototype._updateCitations = async function () { if (index in this.newIndices) { citationsPost = []; delete this.newIndices[index]; + // If this item will need updating later citation processing will reset this index later in the loop + delete this.updateIndices[index]; } else { citationsPost = citations.slice(citationToFieldIdxMapping[index]+1); }