www

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

commit 6dbcdb95f444618f2532b7e41effe28b47915d1e
parent 38531ab172228eb6c0b6fc7ca5fd022e7a1961fa
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 12 Aug 2014 22:16:53 -0400

Fix variable name

Diffstat:
Mchrome/content/zotero/xpcom/data/libraries.js | 12+++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/chrome/content/zotero/xpcom/data/libraries.js b/chrome/content/zotero/xpcom/data/libraries.js @@ -37,8 +37,6 @@ Zotero.Libraries = new function () { version: row.version }; } - - // Current library }); this.exists = function (libraryID) { @@ -97,10 +95,10 @@ Zotero.Libraries = new function () { if (libraryID === 0) { return 'user'; } - if (!_libraryTypes[libraryID]) { + if (!_libraryData[libraryID]) { throw new Error("Library data not loaded for library " + libraryID); } - return _libraryTypes[libraryID].type; + return _libraryData[libraryID].type; } /** @@ -108,10 +106,10 @@ Zotero.Libraries = new function () { * @return {Integer} */ this.getVersion = function (libraryID) { - if (!_libraryTypes[libraryID]) { + if (!_libraryData[libraryID]) { throw new Error("Library data not loaded for library " + libraryID); } - return _libraryTypes[libraryID].version; + return _libraryData[libraryID].version; } @@ -124,7 +122,7 @@ Zotero.Libraries = new function () { version = parseInt(version); var sql = "UPDATE libraries SET version=? WHERE libraryID=?"; yield Zotero.DB.queryAsync(sql, [version, libraryID]); - _libraryTypes[libraryID] = version; + _libraryData[libraryID] = version; });