Use let instead of var

This commit is contained in:
Panayot Cankov
2016-08-29 11:56:38 +03:00
committed by GitHub
parent e487928ab8
commit bc1d379c05

View File

@@ -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] = <android.widget.Button>dlg.findViewById(id);
}
buttons.forEach(button => {