()
| 473 | }; |
| 474 | |
| 475 | const whenClosedCallback = () => { |
| 476 | const transitionState = SharedTransition.getState(this.transitionId); |
| 477 | if (transitionState?.interactiveBegan) { |
| 478 | SharedTransition.updateState(this.transitionId, { |
| 479 | interactiveBegan: false, |
| 480 | }); |
| 481 | if (!transitionState?.interactiveCancelled) { |
| 482 | cleanupModalViews(); |
| 483 | } |
| 484 | } |
| 485 | |
| 486 | if (!transitionState?.interactiveCancelled) { |
| 487 | if (typeof options.closeCallback === 'function') { |
| 488 | options.closeCallback.apply(undefined, originalArgs); |
| 489 | } |
| 490 | |
| 491 | this._tearDownUI(true); |
| 492 | } |
| 493 | }; |
| 494 | |
| 495 | const transitionState = SharedTransition.getState(this.transitionId); |
| 496 | if (!transitionState?.interactiveBegan) { |
no test coverage detected