indexeddb.js
function (data_id) {
		if (mockIndexedDBTestFlags.canDelete === true) {
			mockIndexedDB_storeDeleteTimer = setTimeout(function () {
				mockIndexedDBStoreTransaction.callSuccessHandler();
				mockIndexedDB_deleteSuccess = true;
			}, 20);
		}
		else {
			mockIndexedDB_storeDeleteTimer = setTimeout(function () {
				mockIndexedDBStoreTransaction.callErrorHandler();
				mockIndexedDB_deleteFail = true;
			}, 20);
		}

		return mockIndexedDBStoreTransaction;
	}
function (data_id) {
		if (mockIndexedDBTestFlags.canDelete === true) {
			mockIndexedDB_storeDeleteTimer = setTimeout(function () {
				mockIndexedDBStoreTransaction.callSuccessHandler();
				mockIndexedDB_deleteSuccess = true;
			}, 20);
		}
		else {
			mockIndexedDB_storeDeleteTimer = setTimeout(function () {
				mockIndexedDBStoreTransaction.callErrorHandler();
				mockIndexedDB_deleteFail = true;
			}, 20);
		}

		return mockIndexedDBStoreTransaction;
	}
function ( data_id ) { if ( mockIndexedDBTestFlags . canDelete === true ) { mockIndexedDB_storeDeleteTimer = setTimeout ( function ( ) { mockIndexedDBStoreTransaction . callSuccessHandler ( ) ; mockIndexedDB_deleteSuccess = true ; } , 20 ) ; } else { mockIndexedDB_storeDeleteTimer = setTimeout ( function ( ) { mockIndexedDBStoreTransaction . callErrorHandler ( ) ; mockIndexedDB_deleteFail = true ; } , 20 ) ; } return mockIndexedDBStoreTransaction ; }
for delete, the listeners are attached to a request returned from the store.
for delete the listeners are attached to a request returned from the store .