2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

rename .item => .carousel-item

This commit is contained in:
Chris Rebert
2014-12-17 18:30:16 -08:00
parent 90f4767d06
commit c7ef5810e1
7 changed files with 96 additions and 96 deletions
+3 -3
View File
@@ -65,7 +65,7 @@
}
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)
}
@@ -81,7 +81,7 @@
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
@@ -115,7 +115,7 @@
}
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'