Fix var definitions
Co-Authored-By: Tom <41207070+cimke@users.noreply.github.com>master
parent
1c78592dc2
commit
0f284b51e9
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue