Add group.eraseTx()

This commit is contained in:
Dan Stillman 2015-06-08 03:01:54 -04:00
parent cd2898ece3
commit ec89a98f9d

View File

@ -295,6 +295,13 @@ Zotero.Group.prototype.erase = Zotero.Promise.coroutine(function* () {
});
Zotero.Group.prototype.eraseTx = function () {
return Zotero.DB.executeTransaction(function* () {
return this.erase();
}.bind(this));
}
Zotero.Group.prototype.fromJSON = function (json, userID) {
this._requireLoad();