mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-28 06:20:15 +02:00
carousel -> es6
This commit is contained in:
6
js/dist/util.js
vendored
6
js/dist/util.js
vendored
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user