diff options
Diffstat (limited to 'js/dist/tab.js')
-rw-r--r-- | js/dist/tab.js | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/js/dist/tab.js b/js/dist/tab.js index 95c5619400..ee689ecdd8 100644 --- a/js/dist/tab.js +++ b/js/dist/tab.js @@ -32,7 +32,7 @@ var Tab = (function ($) { HIDDEN: 'hidden' + EVENT_KEY, SHOW: 'show' + EVENT_KEY, SHOWN: 'shown' + EVENT_KEY, - CLICK_DATA_API: 'click' + EVENT_KEY + '' + DATA_API_KEY + CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY }; var ClassName = { @@ -67,6 +67,14 @@ var Tab = (function ($) { this._element = element; } + /** + * ------------------------------------------------------------------------ + * Data Api implementation + * ------------------------------------------------------------------------ + */ + + // getters + _createClass(Tab, [{ key: 'show', @@ -142,11 +150,11 @@ var Tab = (function ($) { $.removeClass(this._element, DATA_KEY); this._element = null; } - }, { - key: '_activate', // private + }, { + key: '_activate', value: function _activate(element, container, callback) { var active = $(container).find(Selector.ACTIVE_CHILD)[0]; var isTransitioning = callback && Util.supportsTransitionEnd() && (active && $(active).hasClass(ClassName.FADE) || !!$(container).find(Selector.FADE_CHILD)[0]); @@ -211,19 +219,11 @@ var Tab = (function ($) { callback(); } } - }], [{ - key: 'VERSION', - - // getters - - get: function () { - return VERSION; - } - }, { - key: '_jQueryInterface', // static + }], [{ + key: '_jQueryInterface', value: function _jQueryInterface(config) { return this.each(function () { var $this = $(this); @@ -239,17 +239,16 @@ var Tab = (function ($) { } }); } + }, { + key: 'VERSION', + get: function get() { + return VERSION; + } }]); return Tab; })(); - /** - * ------------------------------------------------------------------------ - * Data Api implementation - * ------------------------------------------------------------------------ - */ - $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) { event.preventDefault(); Tab._jQueryInterface.call($(this), 'show'); @@ -270,4 +269,4 @@ var Tab = (function ($) { return Tab; })(jQuery); -//# sourceMappingURL=tab.js.map
\ No newline at end of file +//# sourceMappingURL=tab.js.map |