MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / callFunctionWithSuper

Function callFunctionWithSuper

packages/core/ui/core/view-base/index.ts:819–825  ·  view source on GitHub ↗
(flag: Flags, func: () => void)

Source from the content-addressed store, hash-verified

817 }
818
819 private callFunctionWithSuper(flag: Flags, func: () => void): void {
820 this.setFlag(flag, false);
821 func();
822 if (!this.isFlagSet(flag)) {
823 throw new Error(`super.${flag} not called in ${this}`);
824 }
825 }
826
827 public callLoaded(): void {
828 this.callFunctionWithSuper(Flags.superOnLoadedCalled, () => this.onLoaded());

Callers

nothing calls this directly

Calls 1

funcFunction · 0.85

Tested by

no test coverage detected