B2G/gecko/toolkit/mozapps/update/nsUpdateService.js
/**
 * Determines if the state corresponds to an interrupted update.
 * This could either be because the download was interrupted, or
 * because staging the update was interrupted.
 *
 * @return true if the state corresponds to an interrupted
 *         update.
 */
Determines if the state corresponds to an interrupted update.
This could either be because the download was interrupted, or
because staging the update was interrupted.

@return true if the state corresponds to an interrupted
update.
Determines if the state corresponds to an interrupted update . This could either be because the download was interrupted or because staging the update was interrupted . @return true if the state corresponds to an interrupted update .
function isInterruptedUpdate(status) {
  return (status == STATE_DOWNLOADING) ||
         (status == STATE_PENDING) ||
         (status == STATE_APPLYING);
}
function isInterruptedUpdate ( status ) { return ( status == STATE_DOWNLOADING ) || ( status == STATE_PENDING ) || ( status == STATE_APPLYING ) ; }
Determines if the state corresponds to an interrupted update.
Determines if the state corresponds to an interrupted update .