MCPcopy
hub / github.com/webpack/webpack / initialize

Function initialize

test/configCases/inner-graph/issue-11678/module.js:3048–3069  ·  view source on GitHub ↗
(
	generalDataEmplLists,
	newContainerId,
	moduleName,
	previousTableTitle
)

Source from the content-addressed store, hash-verified

3046 return _parentModuleSettings.moduleName;
3047}
3048export async function initialize(
3049 generalDataEmplLists,
3050 newContainerId,
3051 moduleName,
3052 previousTableTitle
3053) {
3054 _setParentModuleSettings(moduleName);
3055 _tableContainerId = "#" + newContainerId;
3056 _formIdName = moduleName + "_" + newContainerId + "-form";
3057 _previousTableTitle = previousTableTitle;
3058 _addDOMElements();
3059 _bindClickEvents();
3060 _staticData = await servicesData.getGeneralData(_getModuleType());
3061 if (generalDataEmplLists !== null) {
3062 _generalDataEmplLists = generalDataEmplLists;
3063 } else {
3064 _generalDataEmplLists = {
3065 listEmpls: _staticData.lists.listEmpls
3066 };
3067 }
3068 return _staticData;
3069}
3070export async function renderFormInDialog(contentId, data, addTask = false) {
3071 const moduleName = ModuleNameEnum.SERVICES;
3072 const pkForJobService = {

Callers

nothing calls this directly

Calls 4

_setParentModuleSettingsFunction · 0.85
_addDOMElementsFunction · 0.85
_bindClickEventsFunction · 0.85
_getModuleTypeFunction · 0.85

Tested by

no test coverage detected