aboutsummaryrefslogtreecommitdiff
path: root/js/carousel.js
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2014-12-17 18:30:16 -0800
committerChris Rebert <[email protected]>2014-12-17 18:44:55 -0800
commitc7ef5810e11bf994d31bb385d794cafc50411c93 (patch)
tree38c2e59bfdd9027f4bb9c9ecdc2da8d6ed481538 /js/carousel.js
parent90f4767d06641a44a2563f53e779fb572ba9ea60 (diff)
downloadbootstrap-c7ef5810e11bf994d31bb385d794cafc50411c93.tar.xz
bootstrap-c7ef5810e11bf994d31bb385d794cafc50411c93.zip
rename .item => .carousel-item
Diffstat (limited to 'js/carousel.js')
-rw-r--r--js/carousel.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/carousel.js b/js/carousel.js
index 99a077c10..1e8215c8b 100644
--- a/js/carousel.js
+++ b/js/carousel.js
@@ -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'