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
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/util.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) {