B2G/gaia/apps/communications/dialer/js/call_log_db.js
/**
   * Delete the storaged database file.
   *
   * param callback
   *        Function to be called after the deletion of the database.
   */
Delete the storaged database file.
param callback
Function to be called after the deletion of the database.
Delete the storaged database file . param callback Function to be called after the deletion of the database .
function deleteDb(callback) {
    var indexedDB = window.indexedDB || window.webkitIndexedDB ||
                    window.mozIndexedDB || window.msIndexedDB;
    if (!indexedDB) {
      callback('NO_INDEXEDDB_AVAILABLE');
      return;
    }
    indexedDB.deleteDatabase(this._dbName, this._dbVersion)
             .onsuccess = (function onsuccess() {
      this._asyncReturn(callback);
    }).bind(this);
  }
function deleteDb ( callback ) { var indexedDB = window . indexedDB || window . webkitIndexedDB || window . mozIndexedDB || window . msIndexedDB ; if ( ! indexedDB ) { callback ( 'NO_INDEXEDDB_AVAILABLE' ) ; return ; } indexedDB . deleteDatabase ( this . _dbName , this . _dbVersion ) . onsuccess = ( function onsuccess ( ) { this . _asyncReturn ( callback ) ; } ) . bind ( this ) ; }
Delete the storaged database file.
Delete the storaged database file .