| 9510 | // ========================= |
| 9511 | |
| 9512 | var Carousel = function (element, options) { |
| 9513 | this.$element = $(element) |
| 9514 | this.$indicators = this.$element.find('.carousel-indicators') |
| 9515 | this.options = options |
| 9516 | this.paused = null |
| 9517 | this.sliding = null |
| 9518 | this.interval = null |
| 9519 | this.$active = null |
| 9520 | this.$items = null |
| 9521 | |
| 9522 | this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this)) |
| 9523 | |
| 9524 | this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element |
| 9525 | .on('mouseenter.bs.carousel', $.proxy(this.pause, this)) |
| 9526 | .on('mouseleave.bs.carousel', $.proxy(this.cycle, this)) |
| 9527 | } |
| 9528 | |
| 9529 | Carousel.VERSION = '3.3.4' |
| 9530 | |