diff options
| author | fat <[email protected]> | 2015-05-10 19:45:38 -0700 |
|---|---|---|
| committer | fat <[email protected]> | 2015-05-10 19:45:38 -0700 |
| commit | ca9c850ebbfc880dc5021b451ffc9fa12184ff87 (patch) | |
| tree | 8db34e73d402c3f71fd2e8c853b7fddf6cee33d6 /js/dist/carousel.js | |
| parent | bbb97a8660639002e70b1786e595ef9171bfecc6 (diff) | |
| download | bootstrap-ca9c850ebbfc880dc5021b451ffc9fa12184ff87.tar.xz bootstrap-ca9c850ebbfc880dc5021b451ffc9fa12184ff87.zip | |
add getters for Version and Default where applicable
add modal my gawd
Diffstat (limited to 'js/dist/carousel.js')
| -rw-r--r-- | js/dist/carousel.js | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/js/dist/carousel.js b/js/dist/carousel.js index 026e74316..b1ef4184f 100644 --- a/js/dist/carousel.js +++ b/js/dist/carousel.js @@ -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); |
