www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 1f00e99e71ebe5ef263099141821c7e6819b2091
parent a2b572665d969d69ecb8824fef019f8ad2d1ede8
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun, 26 Apr 2015 02:40:52 -0400

Fix 'this' binding in ZoteroPane.selectItem(), but this time for real

Diffstat:
Mchrome/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 @@ -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); });