Permalink
Browse files

Use only transitionend event (#24962)

  • Loading branch information...
kamlekar authored and Johann-S committed Dec 7, 2017
1 parent af34799 commit 9d373d71129d656b200690ef97229f8b98bb8eae
Showing with 2 additions and 15 deletions.
  1. +2 −15 js/src/util.js
View
@@ -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) {

0 comments on commit 9d373d7

Please sign in to comment.