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

Function cleanupModalViews

packages/core/ui/core/view/view-common.ts:462–473  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

460 this._modalContext = options.context;
461 this._closeModalCallback = (...originalArgs) => {
462 const cleanupModalViews = () => {
463 const modalIndex = _rootModalViews.indexOf(this);
464 if (modalIndex > -1) {
465 _rootModalViews.splice(modalIndex, 1);
466 }
467
468 this._modalParent = null;
469 this._modalContext = null;
470 this._closeModalCallback = null;
471 this._dialogClosed();
472 parent._modal = null;
473 };
474
475 const whenClosedCallback = () => {
476 const transitionState = SharedTransition.getState(this.transitionId);

Callers 2

whenClosedCallbackFunction · 0.85
_showNativeModalViewFunction · 0.85

Calls 3

indexOfMethod · 0.80
spliceMethod · 0.80
_dialogClosedMethod · 0.80

Tested by

no test coverage detected