From 5c8209da5c99d91372ee2af6871cd429e4297a93 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 25 Apr 2015 03:03:13 -0400 Subject: [PATCH] Fix 'this' binding in ZoteroPane.selectItem() --- chrome/content/zotero/zoteroPane.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 7c9db4550..481d5f344 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -2033,7 +2033,7 @@ var ZoteroPane = new function() yield self.itemsView.selectItem(itemID, expand); } deferred.resolve(true); - }) + }, this) .catch(function(e) { deferred.reject(e); });