Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorMr_Green <kamlekar.venkatesh@gmail.com>2017-12-07 14:10:18 +0300
committerJohann-S <johann.servoire@gmail.com>2017-12-07 14:10:18 +0300
commit9d373d71129d656b200690ef97229f8b98bb8eae (patch)
treefd894675bcd6d2e39fbda04761c42f37146a5881 /js
parentaf34799eda8d0ed92462cf277610a57e8610be88 (diff)
Use only transitionend event (#24962)
Diffstat (limited to 'js')
-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 ef2cc3c57f..c2f7ad4538 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) {