www

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

commit 096507984274a2db1264758624c59b2855e4fb9c
parent add9481c631c54f67d1f529f1f411e018076ba34
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 22 Sep 2015 03:28:12 -0400

Use correct property in Zotero.Libraries.getVersion/setVersion()

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

diff --git a/chrome/content/zotero/xpcom/data/libraries.js b/chrome/content/zotero/xpcom/data/libraries.js @@ -203,9 +203,9 @@ Zotero.Libraries = new function () { * @return {Integer} */ this.getVersion = function (libraryID) { - Zotero.debug("Zotero.Libraries.getVersion() is deprecated. Use Zotero.Library.prototype.version instead"); + Zotero.debug("Zotero.Libraries.getVersion() is deprecated. Use Zotero.Library.prototype.libraryVersion instead"); this._ensureExists(libraryID); - return Zotero.Libraries.get(libraryID).version; + return Zotero.Libraries.get(libraryID).libraryVersion; } @@ -217,11 +217,11 @@ Zotero.Libraries = new function () { * @return {Promise} */ this.setVersion = Zotero.Promise.method(function(libraryID, version) { - Zotero.debug("Zotero.Libraries.setVersion() is deprecated. Use Zotero.Library.prototype.version instead"); + Zotero.debug("Zotero.Libraries.setVersion() is deprecated. Use Zotero.Library.prototype.libraryVersion instead"); this._ensureExists(libraryID); let library = Zotero.Libraries.get(libraryID); - library.version = version; + library.libraryVersion = version; return library.saveTx(); });