1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-28 06:20:15 +02:00

carousel -> es6

This commit is contained in:
fat
2015-05-07 22:26:40 -07:00
parent 6605051882
commit 1b183e2ff7
17 changed files with 966 additions and 236 deletions

6
js/dist/util.js vendored
View File

@@ -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;
}