build/push-to-device.js
/**
 * detect if b2g process needs to be restarted
 * @param  {string}  appName app name
 * @return {bool}            true if needed
 */
detect if b2g process needs to be restarted
@param  {string}  appName app name
@return {bool}            true if needed
detect if b2g process needs to be restarted @param { string } appName app name @return { bool } true if needed
function needsB2gRestart(appName) {
  var appList = ['system'];
  return (appList.indexOf(appName) !== -1);
}
function needsB2gRestart ( appName ) { var appList = [ 'system' ] ; return ( appList . indexOf ( appName ) !== - 1 ) ; }
detect if b2g process needs to be restarted
 @param  {string}  appName app name
 @return {bool}            true if needed
detect if b2g process needs to be restarted @param { string } appName app name @return { bool } true if needed
// b2g should be restarted if these app name is assigned by APP=appname