www

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

commit ec89a98f9d970461a5823bdb839ec812122edeab
parent cd2898ece37aac74c645df718137097adb8bc019
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon,  8 Jun 2015 03:01:54 -0400

Add group.eraseTx()

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

diff --git 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();