clear.js 443 B

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