Commit 9d373d71 authored by Mr_Green's avatar Mr_Green Committed by Johann-S
Browse files

Use only transitionend event (#24962)

parent af34799e
6 merge requests!28721Hot test,!27561Adds font-weight-medium to font weight classes,!25494web pack,!25326Adjust examples,!23207#22402 : modal: new autofocus & keyboardBtnNav options,!17021v4
Showing with 2 additions and 15 deletions
+2 -15
...@@ -20,11 +20,6 @@ const Util = (($) => { ...@@ -20,11 +20,6 @@ const Util = (($) => {
const MAX_UID = 1000000 const MAX_UID = 1000000
const TransitionEndEvent = {
WebkitTransition : 'webkitTransitionEnd',
transition : 'transitionend'
}
// shoutout AngusCroll (https://goo.gl/pxwQGp) // shoutout AngusCroll (https://goo.gl/pxwQGp)
function toType(obj) { function toType(obj) {
return {}.toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase() return {}.toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase()
...@@ -48,17 +43,9 @@ const Util = (($) => { ...@@ -48,17 +43,9 @@ const Util = (($) => {
return false return false
} }
const el = document.createElement('bootstrap') return {
end: 'transitionend'
for (const name in TransitionEndEvent) {
if (typeof el.style[name] !== 'undefined') {
return {
end: TransitionEndEvent[name]
}
}
} }
return false
} }
function transitionEndEmulator(duration) { function transitionEndEmulator(duration) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment