From 00e52ae62b2e84d7fa770ca2f61d1b3b36f156bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Thu, 15 Feb 2018 12:26:50 +0200 Subject: [PATCH] Improves citation processing speed Prevents from unnecesarily sending the same citation to citeproc multiple times --- chrome/content/zotero/xpcom/integration.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 1ad43e9ca..6e7b64c08 100644 --- 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); }