src/indexeddb.js
function (callback) {
    let dbName = this.db.name;

    this.db.close();

    IndexedDB.clean(this.db.name, () => {
      IndexedDB.open(dbName, (err, other) => {
        if (err) {
          log('[IndexedDB] Error while resetting local storage', err);
        } else {
          // hacky!
          this.db = other;
        }
        if (typeof callback === 'function') { callback(self); }
      });
    });
  }
function (callback) {
    let dbName = this.db.name;

    this.db.close();

    IndexedDB.clean(this.db.name, () => {
      IndexedDB.open(dbName, (err, other) => {
        if (err) {
          log('[IndexedDB] Error while resetting local storage', err);
        } else {
          // hacky!
          this.db = other;
        }
        if (typeof callback === 'function') { callback(self); }
      });
    });
  }
function ( callback ) { let dbName = this . db . name ; this . db . close ( ) ; IndexedDB . clean ( this . db . name , ( ) => { IndexedDB . open ( dbName , ( err , other ) => { if ( err ) { log ( '[IndexedDB] Error while resetting local storage' , err ) ; } else { // hacky! this . db = other ; } if ( typeof callback === 'function' ) { callback ( self ) ; } } ) ; } ) ; }
TODO: Document
TODO : Document