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

Method init

packages/base/src/features/F6Navigation.ts:238–247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

236 }
237
238 static init() {
239 const f6Registry = getSharedResource<F6Registry>("F6Registry", {});
240
241 if (!f6Registry.instance) {
242 f6Registry.instance = new F6Navigation();
243 } else if (shouldUpdate(f6Registry.instance?._ui5RuntimeIndex)) {
244 f6Registry.instance?.destroy();
245 f6Registry.instance = new F6Navigation();
246 }
247 }
248
249 static destroy() {
250 const f6Registry = getSharedResource<F6Registry>("F6Registry", {});

Callers 4

FeedHandlerFunction · 0.45
onOpenUI5InitMethodFunction · 0.45
onOpenUI5InitMethodFunction · 0.45
initF6NavigationFunction · 0.45

Calls 3

getSharedResourceFunction · 0.85
destroyMethod · 0.80
shouldUpdateFunction · 0.70

Tested by

no test coverage detected