mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-24 14:04:09 +03:00
carousel -> es6
This commit is contained in:
+5
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user