B2G/gecko/browser/base/content/test/browser_sanitizeDialog_treeView.js
/**
 * Checks to see if the download with the specified ID exists.
 *
 * @param  aID
 *         The ID of the download to check
 * @return True if the download exists, false otherwise
 */
Checks to see if the download with the specified ID exists.
@param  aID
The ID of the download to check
@return True if the download exists, false otherwise
Checks to see if the download with the specified ID exists . @param aID The ID of the download to check @return True if the download exists false otherwise
function downloadExists(aID)
{
  let db = dm.DBConnection;
  let stmt = db.createStatement(
    "SELECT * " +
    "FROM moz_downloads " +
    "WHERE id = :id"
  );
  stmt.params.id = aID;
  let rows = stmt.executeStep();
  stmt.finalize();
  return !!rows;
}
function downloadExists ( aID ) { let db = dm . DBConnection ; let stmt = db . createStatement ( "SELECT * " + "FROM moz_downloads " + "WHERE id = :id" ) ; stmt . params . id = aID ; let rows = stmt . executeStep ( ) ; stmt . finalize ( ) ; return ! ! rows ; }
Checks to see if the download with the specified ID exists.
Checks to see if the download with the specified ID exists .