Rolling back transactions via transaction listener?
Alex Vincent <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.editor |
|---|---|
| Message-ID | <[email protected]> |
I've been thinking for a while that if a nsITransaction does something
it's not supposed to do, I'd like to cancel the transaction and undo it
right away. Something like:
didDo: function didDo(aTxMgr, aTxn, aResult) {
if (/* something unexpected */) {
aTxMgr.undoTransaction();
}
}
Is there any reason that a transaction listener should not do this?
Alex Vincent