aboutsummaryrefslogtreecommitdiff
path: root/js/src/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/src/util.js
parent660505188241418ffda53b5eb848defecd5f57e1 (diff)
downloadbootstrap-1b183e2ff796fc22aba8a8cac074a306c083d018.tar.xz
bootstrap-1b183e2ff796fc22aba8a8cac074a306c083d018.zip
carousel -> es6
Diffstat (limited to 'js/src/util.js')
-rw-r--r--js/src/util.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/src/util.js b/js/src/util.js
index abc548a45..c9ffbe555 100644
--- a/js/src/util.js
+++ b/js/src/util.js
@@ -60,7 +60,7 @@ const Util = (($) => {
setTimeout(() => {
if (!called) {
- $(this).trigger(transition.end)
+ Util.triggerTransitionEnd(this)
}
}, duration)
@@ -109,6 +109,10 @@ const Util = (($) => {
new Function('bs', 'return bs')(element.offsetHeight)
},
+ triggerTransitionEnd(element) {
+ $(element).trigger(transition.end)
+ },
+
supportsTransitionEnd() {
return !!transition
}