From 1f00e99e71ebe5ef263099141821c7e6819b2091 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 26 Apr 2015 02:40:52 -0400 Subject: [PATCH] Fix 'this' binding in ZoteroPane.selectItem(), but this time for real --- chrome/content/zotero/zoteroPane.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); });