aboutsummaryrefslogtreecommitdiff
path: root/js/dist/util.js
diff options
context:
space:
mode:
authorfat <[email protected]>2015-05-07 22:26:40 -0700
committerfat <[email protected]>2015-05-07 22:26:40 -0700
commit1b183e2ff796fc22aba8a8cac074a306c083d018 (patch)
treeecc5298aab8d67841e0a765e44feb0b70c872050 /js/dist/util.js
parent660505188241418ffda53b5eb848defecd5f57e1 (diff)
downloadbootstrap-1b183e2ff796fc22aba8a8cac074a306c083d018.tar.xz
bootstrap-1b183e2ff796fc22aba8a8cac074a306c083d018.zip
carousel -> es6
Diffstat (limited to 'js/dist/util.js')
-rw-r--r--js/dist/util.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/dist/util.js b/js/dist/util.js
index 4f25e200d..f3654eacf 100644
--- a/js/dist/util.js
+++ b/js/dist/util.js
@@ -63,7 +63,7 @@ var Util = (function ($) {
setTimeout(function () {
if (!called) {
- $(_this).trigger(transition.end);
+ Util.triggerTransitionEnd(_this);
}
}, duration);
@@ -110,6 +110,10 @@ var Util = (function ($) {
new Function('bs', 'return bs')(element.offsetHeight);
},
+ triggerTransitionEnd: function triggerTransitionEnd(element) {
+ $(element).trigger(transition.end);
+ },
+
supportsTransitionEnd: function supportsTransitionEnd() {
return !!transition;
}