diff options
| author | Mark Otto <[email protected]> | 2014-12-18 20:19:53 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-12-18 20:19:53 -0800 |
| commit | 94753bc3ec6568f684b2e329244e3190285186f4 (patch) | |
| tree | 3ae40657f51ec33e9f3edab466bb3ff106c527c6 /docs/dist/js/bootstrap.js | |
| parent | 41226bd91e09b609758f493773542fb83f04771b (diff) | |
| download | bootstrap-94753bc3ec6568f684b2e329244e3190285186f4.tar.xz bootstrap-94753bc3ec6568f684b2e329244e3190285186f4.zip | |
grunt
Diffstat (limited to 'docs/dist/js/bootstrap.js')
| -rw-r--r-- | docs/dist/js/bootstrap.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/dist/js/bootstrap.js b/docs/dist/js/bootstrap.js index 7c304856b..773dcfa13 100644 --- a/docs/dist/js/bootstrap.js +++ b/docs/dist/js/bootstrap.js @@ -354,7 +354,7 @@ if (typeof jQuery === 'undefined') { } Carousel.prototype.getItemIndex = function (item) { - this.$items = item.parent().children('.item') + this.$items = item.parent().children('.carousel-item') return this.$items.index(item || this.$active) } @@ -370,7 +370,7 @@ if (typeof jQuery === 'undefined') { Carousel.prototype.to = function (pos) { var that = this - var activeIndex = this.getItemIndex(this.$active = this.$element.find('.item.active')) + var activeIndex = this.getItemIndex(this.$active = this.$element.find('.carousel-item.active')) if (pos > (this.$items.length - 1) || pos < 0) return @@ -404,7 +404,7 @@ if (typeof jQuery === 'undefined') { } Carousel.prototype.slide = function (type, next) { - var $active = this.$element.find('.item.active') + var $active = this.$element.find('.carousel-item.active') var $next = next || this.getItemForDirection(type, $active) var isCycling = this.interval var direction = type == 'next' ? 'left' : 'right' @@ -1457,7 +1457,7 @@ if (typeof jQuery === 'undefined') { var marginTop = parseInt($tip.css('margin-top'), 10) var marginLeft = parseInt($tip.css('margin-left'), 10) - // we must check for NaN for ie 8/9 + // we must check for NaN for IE9 if (isNaN(marginTop)) marginTop = 0 if (isNaN(marginLeft)) marginLeft = 0 |
