From a5273b74ed7f1249a44944cd061171fa803ed547 Mon Sep 17 00:00:00 2001 From: Nathanael Anderson Date: Tue, 11 Oct 2016 06:58:30 -0500 Subject: [PATCH] Fix for Dialogs crashing on iOS (#2866) --- tns-core-modules/ui/dialogs/dialogs-common.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tns-core-modules/ui/dialogs/dialogs-common.ts b/tns-core-modules/ui/dialogs/dialogs-common.ts index 659ed61bd..ea01f1546 100644 --- a/tns-core-modules/ui/dialogs/dialogs-common.ts +++ b/tns-core-modules/ui/dialogs/dialogs-common.ts @@ -54,6 +54,7 @@ export function getButtonColor(): color.Color { var btn = new button.Button(); applySelectors(btn); buttonColor = btn.color; + btn.onUnloaded(); } return buttonColor;