diff options
author | Mark Otto <markdotto@gmail.com> | 2017-12-23 03:21:54 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2017-12-23 03:21:54 +0300 |
commit | 935d45f461e8448b8862e16cde35a3737d6649fd (patch) | |
tree | 9a3cedbc41384726b709041a552490de08c2f085 /js/dist/util.js | |
parent | 13150872c6637d0d224aa9d14fe8e103aff3139e (diff) |
dist
Diffstat (limited to 'js/dist/util.js')
-rw-r--r-- | js/dist/util.js | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/js/dist/util.js b/js/dist/util.js index f64c55cbf7..e920adbd73 100644 --- a/js/dist/util.js +++ b/js/dist/util.js @@ -11,12 +11,7 @@ var Util = function ($) { * ------------------------------------------------------------------------ */ var transition = false; - var MAX_UID = 1000000; - var TransitionEndEvent = { - WebkitTransition: 'webkitTransitionEnd', - transition: 'transitionend' // shoutout AngusCroll (https://goo.gl/pxwQGp) - - }; + var MAX_UID = 1000000; // shoutout AngusCroll (https://goo.gl/pxwQGp) function toType(obj) { return {}.toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase(); @@ -41,17 +36,9 @@ var Util = function ($) { return false; } - var el = document.createElement('bootstrap'); - - for (var name in TransitionEndEvent) { - if (typeof el.style[name] !== 'undefined') { - return { - end: TransitionEndEvent[name] - }; - } - } - - return false; + return { + end: 'transitionend' + }; } function transitionEndEmulator(duration) { |