Fix typo in debug line

This commit is contained in:
Dan Stillman 2017-02-24 02:32:54 -05:00
parent 80a0826eb6
commit 0a1629e986

View file

@ -40,7 +40,7 @@ Zotero.Groups = new function () {
this.register = function (group) {
if (!this._cache) throw new Error("Zotero.Groups cache is not initialized");
Zotero.debug("Zotero.Groups: Registering group " + group.id + " (" + group.libraryID + ")", 5);
Zotero.debug("Registering group " + group.id + " (" + group.libraryID + ")", 5);
this._addToCache(this._cache, group);
}
@ -52,7 +52,7 @@ Zotero.Groups = new function () {
this.unregister = function (groupID) {
if (!this._cache) throw new Error("Zotero.Groups cache is not initialized");
let libraryID = this._cache.libraryIDByGroupID[groupID];
Zotero.debug("Zotero.Groups: Unegistering group " + groupID + " (" + libraryID + ")", 5);
Zotero.debug("Unregistering group " + groupID + " (" + libraryID + ")", 5);
delete this._cache.groupIDByLibraryID[libraryID];
delete this._cache.libraryIDByGroupID[groupID];
}