From ec89a98f9d970461a5823bdb839ec812122edeab Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 8 Jun 2015 03:01:54 -0400 Subject: [PATCH] Add group.eraseTx() --- chrome/content/zotero/xpcom/data/group.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chrome/content/zotero/xpcom/data/group.js b/chrome/content/zotero/xpcom/data/group.js index c8fd50934..9d36e5b33 100644 --- a/chrome/content/zotero/xpcom/data/group.js +++ b/chrome/content/zotero/xpcom/data/group.js @@ -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();