Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorBarryvdh <barryvdh@gmail.com>2012-06-08 17:19:08 +0400
committerBarryvdh <barryvdh@gmail.com>2012-06-08 17:19:08 +0400
commitc028e333586c7ecdbc4cec6ca88ea99b26a11358 (patch)
tree540efdf212ecf59da6ee13c9d914df6afcfec8a8 /js
parent269ce715f1a722a10d0a4a9229bcca8da3aa682a (diff)
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 f8f3c64515..3fda7c6660 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'