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:
authorJacob Thornton <jacobthornton@gmail.com>2012-06-03 22:24:19 +0400
committerJacob Thornton <jacobthornton@gmail.com>2012-06-03 22:24:19 +0400
commit31e8a358c3014d48900f4f266c75a7b62ad66dd3 (patch)
tree3a2de842fb7edf71a95acc2949a94a502297a0fd /js
parent2d3a0babd242d7eebe09cf3f4daad38e2d7df6ee (diff)
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 1bb8f5a066..f8f3c64515 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()
}