Add Zotero.Libraries.userLibrary

This commit is contained in:
Dan Stillman 2015-09-22 01:26:48 -04:00
parent 691819bd32
commit b976c84a29

View file

@ -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() {