www/category-category-module-es5.js
/** Removes record(s) from the objectStore that match the given key. */
Removes record(s) from the objectStore that match the given key.
Removes record ( s ) from the objectStore that match the given key .
function dbRemove(firebaseDependencies) {
      return Object(tslib__WEBPACK_IMPORTED_MODULE_3__["__awaiter"])(this, void 0, void 0, function () {
        var key, db, tx;
        return Object(tslib__WEBPACK_IMPORTED_MODULE_3__["__generator"])(this, function (_a) {
          switch (_a.label) {
            case 0:
              key = getKey(firebaseDependencies);
              return [4
              , getDbPromise()];
            case 1:
              db = _a.sent();
              tx = db.transaction(OBJECT_STORE_NAME, 'readwrite');
              return [4
              , tx.objectStore(OBJECT_STORE_NAME).delete(key)];
            case 2:
              _a.sent();
              return [4
              , tx.complete];
            case 3:
              _a.sent();
              return [2
              ];
          }
        });
      });
    }
function dbRemove ( firebaseDependencies ) { return Object ( tslib__WEBPACK_IMPORTED_MODULE_3__ [ "__awaiter" ] ) ( this , void 0 , void 0 , function ( ) { var key , db , tx ; return Object ( tslib__WEBPACK_IMPORTED_MODULE_3__ [ "__generator" ] ) ( this , function ( _a ) { switch ( _a . label ) { case 0 : key = getKey ( firebaseDependencies ) ; return [ 4 , getDbPromise ( ) ] ; case 1 : db = _a . sent ( ) ; tx = db . transaction ( OBJECT_STORE_NAME , 'readwrite' ) ; return [ 4 , tx . objectStore ( OBJECT_STORE_NAME ) . delete ( key ) ] ; case 2 : _a . sent ( ) ; return [ 4 , tx . complete ] ; case 3 : _a . sent ( ) ; return [ 2 ] ; } } ) ; } ) ; }
Removes record(s) from the objectStore that match the given key.
Removes record ( s ) from the objectStore that match the given key .
/*yield*/ /*yield*/ /*yield*/ /*return*/