www

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

commit faf3b94b64b805d9b41721129b5ad49b6d816197
parent 177dac3fd27401c6f5cb95c91ef7cb370f44b5fd
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu, 10 Dec 2015 20:32:42 -0500

Clear existing DB user values when reinitializing Users for tests

Diffstat:
Mchrome/content/zotero/xpcom/users.js | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/users.js b/chrome/content/zotero/xpcom/users.js @@ -43,6 +43,12 @@ Zotero.Users = new function () { _libraryID = settings.libraryID; _username = settings.username; } + // Clear old values when reinitializing for tests + else { + _userID = undefined; + _libraryID = undefined; + _username = undefined; + } if (settings.localUserKey) { _localUserKey = settings.localUserKey;