Dexie.ignoreTransaction()
Syntax
Dexie.ignoreTransaction(function() {
// Launch a db operation or start a transaction.
});Description
Sample
db.transaction('rw', db.friends, function () {
db.friends.add({name: "Hillary"}).then(function() {
log("Hillary was added");
});
});
function log (message) {
// Our callers should not have to include the "logs" table in
// it's transactions.
// To make sure we add the log entry using a fresh transaction, we
// use the spawn() method:
Dexie.ignoreTransaction(function() {
db.logs.add({message: message, date: new Date()});
});
}