Transaction.on.abort

Syntax

trans.on("abort", function () {
    // Do stuff when transaction aborts
});

Example

db.transaction('rw', db.friends, function() {
    Dexie.currentTransaction.on('abort', function(){
        console.log('Transaction aborted');
    });
});

Table of Contents