MCPcopy Create free account
hub / github.com/UI5/webcomponents / defineSequence

Function defineSequence

packages/base/src/UI5Element.ts:1415–1428  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1413 */
1414 static define(): typeof UI5Element {
1415 const defineSequence = async () => {
1416 await boot(); // boot must finish first, because it initializes configuration
1417 const result = await Promise.all([
1418 this.fetchI18nBundles(), // uses configuration
1419 this.fetchCLDR(),
1420 this.onDefine(),
1421 ]);
1422 const [i18nBundles] = result;
1423 Object.entries(this.getMetadata().getI18n()).forEach((pair, index) => {
1424 const bundleName = pair[1].bundleName;
1425 this.i18nBundleStorage[bundleName] = i18nBundles[index];
1426 });
1427 this.asyncFinished = true;
1428 };
1429 this._definePromise = defineSequence();
1430
1431 const tag = this.getMetadata().getTag();

Callers 1

defineFunction · 0.85

Calls 4

bootFunction · 0.85
getI18nMethod · 0.80
getMetadataMethod · 0.80
onDefineMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…