Fix var definitions

Co-Authored-By: Tom <41207070+cimke@users.noreply.github.com>
master
alastairR 2019-11-15 10:12:54 +13:00 committed by GitHub
parent 1c78592dc2
commit 0f284b51e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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]);
}