diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 481d5f344a..2b44a3a965 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -2024,16 +2024,16 @@ var ZoteroPane = new function() if (!selected) { if (item.deleted) { Zotero.debug("Item is deleted; switching to trash"); - this.collectionsView.selectTrash(item.libraryID); + self.collectionsView.selectTrash(item.libraryID); } else { Zotero.debug("Item was not selected; switching to library"); - yield this.collectionsView.selectLibrary(item.libraryID); + yield self.collectionsView.selectLibrary(item.libraryID); } yield self.itemsView.selectItem(itemID, expand); } deferred.resolve(true); - }, this) + }) .catch(function(e) { deferred.reject(e); });