0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

Use only transitionend event (#24962)

This commit is contained in:
Mr_Green 2017-12-07 16:40:18 +05:30 committed by Johann-S
parent af34799eda
commit 9d373d7112

View File

@ -20,11 +20,6 @@ const Util = (($) => {
const MAX_UID = 1000000
const TransitionEndEvent = {
WebkitTransition : 'webkitTransitionEnd',
transition : 'transitionend'
}
// shoutout AngusCroll (https://goo.gl/pxwQGp)
function toType(obj) {
return {}.toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase()
@ -48,17 +43,9 @@ const Util = (($) => {
return false
}
const el = document.createElement('bootstrap')
for (const name in TransitionEndEvent) {
if (typeof el.style[name] !== 'undefined') {
return {
end: TransitionEndEvent[name]
}
}
return {
end: 'transitionend'
}
return false
}
function transitionEndEmulator(duration) {