diff options
author | fat <fat@folders.local> | 2015-05-08 08:26:40 +0300 |
---|---|---|
committer | fat <fat@folders.local> | 2015-05-08 08:26:40 +0300 |
commit | 1b183e2ff796fc22aba8a8cac074a306c083d018 (patch) | |
tree | ecc5298aab8d67841e0a765e44feb0b70c872050 /js/dist/util.js | |
parent | 660505188241418ffda53b5eb848defecd5f57e1 (diff) |
carousel -> es6
Diffstat (limited to 'js/dist/util.js')
-rw-r--r-- | js/dist/util.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/dist/util.js b/js/dist/util.js index 4f25e200da..f3654eacfa 100644 --- a/js/dist/util.js +++ b/js/dist/util.js @@ -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; } |