Fix var definitions

Co-Authored-By: Tom <41207070+cimke@users.noreply.github.com>
This commit is contained in:
alastairR 2019-11-15 10:12:54 +13:00 committed by GitHub
parent 07e6660145
commit 3339e69f6d

View file

@ -160,7 +160,7 @@ function removeDOMElement(...elements) {
function removeClassesByPrefix(el, prefix)
{
for(var i = el.classList.length - 1; i >= 0; i--) {
for (let i = el.classList.length - 1; i >= 0; i--) {
if(el.classList[i].startsWith(prefix)) {
el.classList.remove(el.classList[i]);
}