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

Add back support for IE 11

This commit is contained in:
Johann-S
2019-03-16 16:10:23 +02:00
committed by XhmikosR
parent f7c1b1e683
commit 08679ac0b5
10 changed files with 214 additions and 106 deletions

View File

@@ -71,7 +71,10 @@ const getTransitionDurationFromElement = element => {
}
const triggerTransitionEnd = element => {
element.dispatchEvent(new Event(TRANSITION_END))
const evt = document.createEvent('HTMLEvents')
evt.initEvent(TRANSITION_END, true, true)
element.dispatchEvent(evt)
}
const isElement = obj => (obj[0] || obj).nodeType