diff options
author | Johann-S <johann.servoire@gmail.com> | 2020-03-09 16:34:07 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2020-03-18 21:59:27 +0300 |
commit | 47aef7b2c6f4570443a16f8db302586a7ce548af (patch) | |
tree | 2e289488b092fcd797fe2e4c867bc806a6f7abb2 /js/src/util | |
parent | bc3f82863bbf808c80083860ed40a88e4969b4ca (diff) |
Remove IE compatibility JS code
Diffstat (limited to 'js/src/util')
-rw-r--r-- | js/src/util/index.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/js/src/util/index.js b/js/src/util/index.js index fca2a91977..001201b4bc 100644 --- a/js/src/util/index.js +++ b/js/src/util/index.js @@ -87,10 +87,7 @@ const getTransitionDurationFromElement = element => { } const triggerTransitionEnd = element => { - const evt = document.createEvent('HTMLEvents') - - evt.initEvent(TRANSITION_END, true, true) - element.dispatchEvent(evt) + element.dispatchEvent(new Event(TRANSITION_END)) } const isElement = obj => (obj[0] || obj).nodeType |