removeItem.js 530 B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var localforage_driver_commons_1 = require("localforage-driver-commons");
  4. function removeItem(key$, callback) {
  5. var _this = this;
  6. key$ = localforage_driver_commons_1.normaliseKey(key$);
  7. var promise = this.ready().then(function () {
  8. _this._dbInfo.mStore.rm(key$);
  9. });
  10. localforage_driver_commons_1.executeCallback(promise, callback);
  11. return promise;
  12. }
  13. exports.removeItem = removeItem;
  14. //# sourceMappingURL=removeItem.js.map