commit 06a7b1438fd5c72adcf9854ca5db62a93509eda9 parent d550ac92b4362b91d317beb0b3d6e88a481cec9f Author: Simon Kornblith <simon@simonster.com> Date: Mon, 16 Jul 2012 21:56:31 -0400 Fix operations that remove field codes Diffstat:
| M | 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 @@ -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(); } }