indexeddb.js
function (data_id) {
		if (mockIndexedDBTestFlags.canClear === true) {
			mockIndexedDB_storeClearTimer = setTimeout(function () {
				mockIndexedDBStoreTransaction.callSuccessHandler();
				mockIndexedDB_clearSuccess = true;
			}, 20);
		}
		else {
			mockIndexedDB_storeClearTimer = setTimeout(function () {
				mockIndexedDBStoreTransaction.callErrorHandler();
				mockIndexedDB_clearFail = true;
			}, 20);
		}

		return mockIndexedDBStoreTransaction;
	}
function (data_id) {
		if (mockIndexedDBTestFlags.canClear === true) {
			mockIndexedDB_storeClearTimer = setTimeout(function () {
				mockIndexedDBStoreTransaction.callSuccessHandler();
				mockIndexedDB_clearSuccess = true;
			}, 20);
		}
		else {
			mockIndexedDB_storeClearTimer = setTimeout(function () {
				mockIndexedDBStoreTransaction.callErrorHandler();
				mockIndexedDB_clearFail = true;
			}, 20);
		}

		return mockIndexedDBStoreTransaction;
	}
function ( data_id ) { if ( mockIndexedDBTestFlags . canClear === true ) { mockIndexedDB_storeClearTimer = setTimeout ( function ( ) { mockIndexedDBStoreTransaction . callSuccessHandler ( ) ; mockIndexedDB_clearSuccess = true ; } , 20 ) ; } else { mockIndexedDB_storeClearTimer = setTimeout ( function ( ) { mockIndexedDBStoreTransaction . callErrorHandler ( ) ; mockIndexedDB_clearFail = true ; } , 20 ) ; } return mockIndexedDBStoreTransaction ; }
for clear, the listeners are attached to a request returned from the store.
for clear the listeners are attached to a request returned from the store .