From 06a7b1438fd5c72adcf9854ca5db62a93509eda9 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 16 Jul 2012 21:56:31 -0400 Subject: [PATCH] Fix operations that remove field codes --- chrome/content/zotero/xpcom/integration.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 449c8793a..2081cad7b 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -1668,8 +1668,8 @@ Zotero.Integration.Fields.prototype._updateDocument = function(forceCitations, f } } var removeCodeFields = Object.keys(this._removeCodeFields).sort(); - for(var i=(this._removeCodeFields.length-1); i>=0; i--) { - this._fields[this._removeCodeFields[i]].removeCode(); + for(var i=(removeCodeFields.length-1); i>=0; i--) { + this._fields[removeCodeFields[i]].removeCode(); } }