diff options
author | Jacob Thornton <jacobthornton@gmail.com> | 2012-06-03 22:24:19 +0400 |
---|---|---|
committer | Jacob Thornton <jacobthornton@gmail.com> | 2012-06-03 22:24:19 +0400 |
commit | 31e8a358c3014d48900f4f266c75a7b62ad66dd3 (patch) | |
tree | 3a2de842fb7edf71a95acc2949a94a502297a0fd /docs/assets/js/bootstrap-carousel.js | |
parent | 2d3a0babd242d7eebe09cf3f4daad38e2d7df6ee (diff) |
check length so that pause, actually pauses
Diffstat (limited to 'docs/assets/js/bootstrap-carousel.js')
-rw-r--r-- | docs/assets/js/bootstrap-carousel.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/assets/js/bootstrap-carousel.js b/docs/assets/js/bootstrap-carousel.js index 1bb8f5a066..f8f3c64515 100644 --- a/docs/assets/js/bootstrap-carousel.js +++ b/docs/assets/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() } |