aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMr_Green <[email protected]>2017-12-07 16:40:18 +0530
committerJohann-S <[email protected]>2017-12-07 12:10:18 +0100
commit9d373d71129d656b200690ef97229f8b98bb8eae (patch)
treefd894675bcd6d2e39fbda04761c42f37146a5881
parentaf34799eda8d0ed92462cf277610a57e8610be88 (diff)
downloadbootstrap-9d373d71129d656b200690ef97229f8b98bb8eae.tar.xz
bootstrap-9d373d71129d656b200690ef97229f8b98bb8eae.zip
Use only transitionend event (#24962)
-rw-r--r--js/src/util.js17
1 files changed, 2 insertions, 15 deletions
diff --git a/js/src/util.js b/js/src/util.js
index ef2cc3c57..c2f7ad453 100644
--- a/js/src/util.js
+++ b/js/src/util.js
@@ -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) {