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/carousel.js
parent9bdb6d13f606ec18d808a30e5ebc28ec3eb82a4b (diff)
fix modal
Diffstat (limited to 'js/dist/carousel.js')
-rw-r--r--js/dist/carousel.js51
1 files changed, 25 insertions, 26 deletions
diff --git a/js/dist/carousel.js b/js/dist/carousel.js
index 029c69fdba..761717193b 100644
--- a/js/dist/carousel.js
+++ b/js/dist/carousel.js
@@ -54,8 +54,8 @@ var Carousel = (function ($) {
KEYDOWN: 'keydown' + EVENT_KEY,
MOUSEENTER: 'mouseenter' + EVENT_KEY,
MOUSELEAVE: 'mouseleave' + EVENT_KEY,
- LOAD_DATA_API: 'load' + EVENT_KEY + '' + DATA_API_KEY,
- CLICK_DATA_API: 'click' + EVENT_KEY + '' + DATA_API_KEY
+ LOAD_DATA_API: 'load' + EVENT_KEY + DATA_API_KEY,
+ CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY
};
var ClassName = {
@@ -101,6 +101,14 @@ var Carousel = (function ($) {
this._addEventListeners();
}
+ /**
+ * ------------------------------------------------------------------------
+ * Data Api implementation
+ * ------------------------------------------------------------------------
+ */
+
+ // getters
+
_createClass(Carousel, [{
key: 'next',
@@ -194,11 +202,11 @@ var Carousel = (function ($) {
this._activeElement = null;
this._indicatorsElement = null;
}
- }, {
- key: '_getConfig',
// private
+ }, {
+ key: '_getConfig',
value: function _getConfig(config) {
config = $.extend({}, Default, config);
Util.typeCheckConfig(NAME, config, DefaultType);
@@ -354,24 +362,11 @@ var Carousel = (function ($) {
this.cycle();
}
}
- }], [{
- key: 'VERSION',
-
- // getters
-
- get: function () {
- return VERSION;
- }
- }, {
- key: 'Default',
- get: function () {
- return Default;
- }
- }, {
- key: '_jQueryInterface',
// static
+ }], [{
+ key: '_jQueryInterface',
value: function _jQueryInterface(config) {
return this.each(function () {
var data = $(this).data(DATA_KEY);
@@ -428,17 +423,21 @@ var Carousel = (function ($) {
event.preventDefault();
}
+ }, {
+ key: 'VERSION',
+ get: function get() {
+ return VERSION;
+ }
+ }, {
+ key: 'Default',
+ get: function get() {
+ return Default;
+ }
}]);
return Carousel;
})();
- /**
- * ------------------------------------------------------------------------
- * Data Api implementation
- * ------------------------------------------------------------------------
- */
-
$(document).on(Event.CLICK_DATA_API, Selector.DATA_SLIDE, Carousel._dataApiClickHandler);
$(window).on(Event.LOAD_DATA_API, function () {
@@ -463,4 +462,4 @@ var Carousel = (function ($) {
return Carousel;
})(jQuery);
-//# sourceMappingURL=carousel.js.map \ No newline at end of file
+//# sourceMappingURL=carousel.js.map