1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-27 22:09:04 +02:00

Remove IE compatibility JS code

This commit is contained in:
Johann-S
2020-03-09 14:34:07 +01:00
committed by XhmikosR
parent bc3f82863b
commit 47aef7b2c6
5 changed files with 7 additions and 83 deletions

View File

@@ -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