From 0952e43989be3f24321932c3dd33fdc697c5703a Mon Sep 17 00:00:00 2001 From: uditgulati Date: Sun, 23 Aug 2020 14:47:39 -0500 Subject: replace var to let for variables in loops --- wqflask/wqflask/templates/snp_browser.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wqflask/wqflask/templates/snp_browser.html b/wqflask/wqflask/templates/snp_browser.html index 284a371a..435a521c 100644 --- a/wqflask/wqflask/templates/snp_browser.html +++ b/wqflask/wqflask/templates/snp_browser.html @@ -539,17 +539,17 @@ var headers = []; var col_header = rows[0].querySelectorAll("th"); - for(var i = 1; i < col_header.length; i++) { + for(let i = 1; i < col_header.length; i++) { headers.push(col_header[i].getAttribute("name")); } csv.push(headers.join(",")); - for (var i = 1; i < rows.length; i++) { + for (let i = 1; i < rows.length; i++) { var row = [], cols = rows[i].querySelectorAll("td"); var checkBox = rows[i].querySelector("input"); if(checkBox.checked == true) { - for (var j = 1; j < cols.length; j++) + for (let j = 1; j < cols.length; j++) row.push(cols[j].innerText); csv.push(row.join(",")); -- cgit v1.2.3