Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Thornton <jacobthornton@gmail.com>2015-08-13 07:12:03 +0300
committerJacob Thornton <jacobthornton@gmail.com>2015-08-13 07:12:03 +0300
commit11abb0f7e94771bcf604c72b34f6688e6aa3a290 (patch)
tree35266bd178dc46aa2371b41d88e4c5b142749651 /js/dist/tab.js
parent9bdb6d13f606ec18d808a30e5ebc28ec3eb82a4b (diff)
fix modal
Diffstat (limited to 'js/dist/tab.js')
-rw-r--r--js/dist/tab.js39
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