Skip to content

Commit bbce709

Browse files
committed
chre: sc
1 parent 9b245c8 commit bbce709

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/dialogs/dialogs.ios.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ function createAlertController(options: DialogOptions & MDCAlertControlerOptions
218218
moduleName: options.view as string
219219
});
220220
if (view.parent) {
221-
view.parent._removeView(view)
221+
view.parent._removeView(view);
222222
}
223223
view.cssClasses.add(CSSUtils.MODAL_ROOT_VIEW_CSS_CLASS);
224224
const modalRootViewCssClasses = CSSUtils.getSystemCssClasses();
@@ -582,7 +582,7 @@ function showUIAlertController(alertController: MDCAlertController, options: Dia
582582
}
583583
}
584584

585-
let rootView = Application.getRootView();
585+
let rootView = Application.getRootView();
586586
if (rootView.parent) {
587587
rootView = rootView.parent as any;
588588
}
@@ -591,14 +591,15 @@ function showUIAlertController(alertController: MDCAlertController, options: Dia
591591
currentView = currentView.modal || currentView;
592592
let viewController = currentView.viewController;
593593
if (!viewController) {
594-
throw new Error("no_controller_to_show_dialog");
595-
}
594+
throw new Error('no_controller_to_show_dialog');
595+
}
596596
if (!viewController.presentedViewController && rootView.viewController.presentedViewController && !rootView.viewController.presentedViewController.beingDismissed) {
597597
viewController = rootView.viewController.presentedViewController;
598598
}
599599

600600
while (viewController.presentedViewController && !viewController.presentedViewController.beingDismissed) {
601-
while ( viewController.presentedViewController instanceof UIAlertController ||
601+
while (
602+
viewController.presentedViewController instanceof UIAlertController ||
602603
(viewController.presentedViewController['isAlertController'] && viewController.presentedViewController.presentedViewController)
603604
) {
604605
viewController = viewController.presentedViewController;
@@ -610,7 +611,7 @@ function showUIAlertController(alertController: MDCAlertController, options: Dia
610611
}
611612
}
612613
showingDialogs.push(alertController);
613-
function block(){
614+
function block() {
614615
if (alertController.popoverPresentationController) {
615616
alertController.popoverPresentationController.sourceView = viewController.view;
616617
alertController.popoverPresentationController.sourceRect = CGRectMake(viewController.view.bounds.size.width / 2.0, viewController.view.bounds.size.height / 2.0, 1.0, 1.0);
@@ -624,7 +625,7 @@ function showUIAlertController(alertController: MDCAlertController, options: Dia
624625
block();
625626
});
626627
} else {
627-
throw new Error("controller_already_presented");
628+
throw new Error('controller_already_presented');
628629
}
629630
} else {
630631
block();

0 commit comments

Comments
 (0)