changed var to let in last files (#13087)

This commit is contained in:
Patrick O'Carroll
2018-08-30 08:58:43 +02:00
committed by Torkel Ödegaard
parent ceadced6f0
commit b494a29e02
45 changed files with 131 additions and 131 deletions

View File

@@ -21,7 +21,7 @@ function uploadDashboardDirective(timer, alertSrv, $location) {
const files = evt.target.files; // FileList object
const readerOnload = function() {
return function(e) {
var dash;
let dash;
try {
dash = JSON.parse(e.target.result);
} catch (err) {
@@ -36,7 +36,7 @@ function uploadDashboardDirective(timer, alertSrv, $location) {
};
};
for (var i = 0, f; (f = files[i]); i++) {
for (let i = 0, f; (f = files[i]); i++) {
const reader = new FileReader();
reader.onload = readerOnload();
reader.readAsText(f);