From bc1d379c05eac46118edffbc0483269592a2f2ee Mon Sep 17 00:00:00 2001 From: Panayot Cankov Date: Mon, 29 Aug 2016 11:56:38 +0300 Subject: [PATCH] Use let instead of var --- tns-core-modules/ui/dialogs/dialogs.android.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tns-core-modules/ui/dialogs/dialogs.android.ts b/tns-core-modules/ui/dialogs/dialogs.android.ts index 4d5b33353..83edc40be 100644 --- a/tns-core-modules/ui/dialogs/dialogs.android.ts +++ b/tns-core-modules/ui/dialogs/dialogs.android.ts @@ -40,11 +40,11 @@ function showDialog(builder: android.app.AlertDialog.Builder) { } } - var buttonColor = dialogsCommon.getButtonColor(); + let buttonColor = dialogsCommon.getButtonColor(); if (buttonColor) { let buttons : android.widget.Button[] = []; - for (var i = 0; i < 3; i++) { - var id = dlg.getContext().getResources().getIdentifier("android:id/button" + i, null, null); + for (let i = 0; i < 3; i++) { + let id = dlg.getContext().getResources().getIdentifier("android:id/button" + i, null, null); buttons[i] = dlg.findViewById(id); } buttons.forEach(button => {