aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-06-03 11:24:19 -0700
committerJacob Thornton <[email protected]>2012-06-03 11:24:19 -0700
commit31e8a358c3014d48900f4f266c75a7b62ad66dd3 (patch)
tree3a2de842fb7edf71a95acc2949a94a502297a0fd /js
parent2d3a0babd242d7eebe09cf3f4daad38e2d7df6ee (diff)
downloadbootstrap-31e8a358c3014d48900f4f266c75a7b62ad66dd3.tar.xz
bootstrap-31e8a358c3014d48900f4f266c75a7b62ad66dd3.zip
check length so that pause, actually pauses
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 1bb8f5a06..f8f3c6451 100644
--- a/js/bootstrap-carousel.js
+++ b/js/bootstrap-carousel.js
@@ -68,7 +68,7 @@
, pause: function (e) {
if (!e) this.paused = true
- if (this.$element.find('.next, .prev') && $.support.transition.end) {
+ if (this.$element.find('.next, .prev').length && $.support.transition.end) {
this.$element.trigger($.support.transition.end)
this.cycle()
}