commit b976c84a29aa74f0dd8bd69c4e0d4847db9218ea parent 691819bd32d1e11c4ea1e96785cc43cb1164fdf6 Author: Dan Stillman <dstillman@zotero.org> Date: Tue, 22 Sep 2015 01:26:48 -0400 Add Zotero.Libraries.userLibrary Diffstat:
| M | chrome/content/zotero/xpcom/data/libraries.js | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/data/libraries.js b/chrome/content/zotero/xpcom/data/libraries.js @@ -34,6 +34,13 @@ Zotero.Libraries = new function () { } }); + let _userLibrary; + Zotero.defineProperty(this, 'userLibrary', { + get: function () { + return _userLibrary || (_userLibrary = Zotero.Libraries.get(this.userLibraryID)); + } + }) + let _publicationsLibraryID; Zotero.defineProperty(this, 'publicationsLibraryID', { get: function() {