2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03: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
+5 -1
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;
}