www

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

commit ba3d90eaf97dcc88a5826699a27a9033bb16bbbd
parent 1b333be23f13dee5c061dbb72fbacbf724fe2c8f
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 29 Sep 2015 13:02:29 -0400

Make sure Zotero.Libraries.userLibrary doesn't get out of sync

https://github.com/zotero/zotero/commit/b976c84a29aa74f0dd8bd69c4e0d4847db9218ea#commitcomment-13492424

Diffstat:
Mchrome/content/zotero/xpcom/data/libraries.js | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/data/libraries.js b/chrome/content/zotero/xpcom/data/libraries.js @@ -34,10 +34,9 @@ Zotero.Libraries = new function () { } }); - let _userLibrary; Zotero.defineProperty(this, 'userLibrary', { get: function () { - return _userLibrary || (_userLibrary = Zotero.Libraries.get(this.userLibraryID)); + return Zotero.Libraries.get(_userLibraryID); } })