aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorBarryvdh <[email protected]>2012-06-08 16:19:08 +0300
committerBarryvdh <[email protected]>2012-06-08 16:19:08 +0300
commitc028e333586c7ecdbc4cec6ca88ea99b26a11358 (patch)
tree540efdf212ecf59da6ee13c9d914df6afcfec8a8 /js
parent269ce715f1a722a10d0a4a9229bcca8da3aa682a (diff)
downloadbootstrap-c028e333586c7ecdbc4cec6ca88ea99b26a11358.tar.xz
bootstrap-c028e333586c7ecdbc4cec6ca88ea99b26a11358.zip
Scope finding the .active to .item
Diffstat (limited to 'js')
-rw-r--r--js/bootstrap-carousel.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/bootstrap-carousel.js b/js/bootstrap-carousel.js
index f8f3c6451..3fda7c666 100644
--- a/js/bootstrap-carousel.js
+++ b/js/bootstrap-carousel.js
@@ -88,7 +88,7 @@
}
, slide: function (type, next) {
- var $active = this.$element.find('.active')
+ var $active = this.$element.find('.item.active')
, $next = next || $active[type]()
, isCycling = this.interval
, direction = type == 'next' ? 'left' : 'right'