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

b976c84a29 (commitcomment-13492424)
This commit is contained in:
Dan Stillman 2015-09-29 13:02:29 -04:00
parent 1b333be23f
commit ba3d90eaf9

View file

@ -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);
}
})