Skip to content

Commit 0638c23

Browse files
committed
fix(util): fixed wrong iteration
1 parent 44a3840 commit 0638c23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/util/Util.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ class Util {
7171
WebkitTransition: 'webkitTransitionEnd'
7272
};
7373

74-
Object.keys(transitions).forEach(t => {
75-
if (el.style[t] !== undefined) {
76-
return transitions[t];
74+
for (const [key, value] of Object.entries(transitions)) {
75+
if (el.style[key] !== undefined) {
76+
return value;
7777
}
78-
});
78+
}
7979
}
8080

8181
/**

0 commit comments

Comments
 (0)