From a982bd056d029c65fafba797887fb5bee0eab027 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 11 Jul 2017 04:44:58 -0400 Subject: [PATCH] Zotero.Item::_collections is always an array --- chrome/content/zotero/xpcom/data/item.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index cd9aa4e976..92e42292a5 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -4002,11 +4002,9 @@ Zotero.Item.prototype._eraseData = Zotero.Promise.coroutine(function* (env) { // Remove item from parent collections var parentCollectionIDs = this._collections; - if (parentCollectionIDs) { - for (var i=0; i