function stop(sModuleId, sInstanceId) {
  const oModules = getModules();
  var oModule;
  oModule = oModules[sModuleId];
  if (isTypeOf(oModule, sNotDefined)) {
    return false;
  }
  if (!isTypeOf(sInstanceId, sNotDefined)) {
    _singleModuleStop(oModule, sInstanceId);
  } else {
    _multiModuleStop(oModule);
  }
  return true;
}
function stop(sModuleId, sInstanceId) {
  const oModules = getModules();
  var oModule;
  oModule = oModules[sModuleId];
  if (isTypeOf(oModule, sNotDefined)) {
    return false;
  }
  if (!isTypeOf(sInstanceId, sNotDefined)) {
    _singleModuleStop(oModule, sInstanceId);
  } else {
    _multiModuleStop(oModule);
  }
  return true;
}
function stop ( sModuleId , sInstanceId ) { const oModules = getModules ( ) ; var oModule ; oModule = oModules [ sModuleId ] ; if ( isTypeOf ( oModule , sNotDefined ) ) { return false ; } if ( ! isTypeOf ( sInstanceId , sNotDefined ) ) { _singleModuleStop ( oModule , sInstanceId ) ; } else { _multiModuleStop ( oModule ) ; } return true ; }
stop is the method that will finish the module if it was registered and started.
When stop is called the module will call the destroy method and will nullify the instance.
@param {String} sModuleId
@param {String} [sInstanceId]
@return {Boolean}
stop is the method that will finish the module if it was registered and started . When stop is called the module will call the destroy method and will nullify the instance .