Changing 'var' to 'let' as requested in PR #9

This commit is contained in:
CRImier 2020-08-25 03:44:52 +03:00
parent 8bcd50befc
commit 18c257d60c
2 changed files with 2 additions and 3 deletions

View File

@ -66,9 +66,8 @@ document.addEventListener("click", (e) => {
hideModal("loadModal");
}
}
else if (action.includes("deselectAll")) {
var container = document.getElementById("editSelectionContainer");
let container = document.getElementById("editSelectionContainer");
deselectAll(container);
}

View File

@ -194,7 +194,7 @@ const getSelectionData = (container = null, keys = null, keysLength = 0) => {
}
const deselectAll = (container = null) => {
var selAlls = container.querySelectorAll('.selAll');
let selAlls = container.querySelectorAll('.selAll');
for (var i = 0; i < selAlls.length; i++) {
var selAll = selAlls[i];
selAll.checked = false;