Fix prefer for-of errors
This commit is contained in:
parent
ef719c45f4
commit
1b03cd79eb
11 changed files with 26 additions and 47 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue