1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-13 17:14:04 +02:00

add getters for Version and Default where applicable

add modal my gawd
This commit is contained in:
fat
2015-05-10 19:45:38 -07:00
parent bbb97a8660
commit ca9c850ebb
29 changed files with 1114 additions and 1153 deletions

17
js/dist/carousel.js vendored
View File

@@ -25,7 +25,7 @@ var Carousel = (function ($) {
var JQUERY_NO_CONFLICT = $.fn[NAME];
var TRANSITION_DURATION = 600;
var Defaults = {
var Default = {
interval: 5000,
keyboard: true,
slide: false,
@@ -320,6 +320,19 @@ var Carousel = (function ($) {
}
}
}], [{
key: 'VERSION',
// getters
get: function () {
return VERSION;
}
}, {
key: 'Default',
get: function () {
return Default;
}
}, {
key: '_jQueryInterface',
// static
@@ -327,7 +340,7 @@ var Carousel = (function ($) {
value: function _jQueryInterface(config) {
return this.each(function () {
var data = $(this).data(DATA_KEY);
var _config = $.extend({}, Defaults, $(this).data());
var _config = $.extend({}, Default, $(this).data());
if (typeof config === 'object') {
$.extend(_config, config);