Fix prefer for-of errors

This commit is contained in:
Bill Thornton 2023-05-04 11:27:15 -04:00
parent ef719c45f4
commit 1b03cd79eb
11 changed files with 26 additions and 47 deletions

View file

@ -167,8 +167,8 @@ function supportsCssAnimation(allowPrefix) {
}
if (animation === false && allowPrefix) {
for (let i = 0; i < domPrefixes.length; i++) {
if (elm.style[domPrefixes[i] + 'AnimationName'] !== undefined) {
for (const domPrefix of domPrefixes) {
if (elm.style[domPrefix + 'AnimationName'] !== undefined) {
animation = true;
break;
}