| 323 | // ========================= |
| 324 | |
| 325 | var Carousel = function (element, options) { |
| 326 | this.$element = $(element) |
| 327 | this.$indicators = this.$element.find('.carousel-indicators') |
| 328 | this.options = options |
| 329 | this.paused = null |
| 330 | this.sliding = null |
| 331 | this.interval = null |
| 332 | this.$active = null |
| 333 | this.$items = null |
| 334 | |
| 335 | this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this)) |
| 336 | |
| 337 | this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element |
| 338 | .on('mouseenter.bs.carousel', $.proxy(this.pause, this)) |
| 339 | .on('mouseleave.bs.carousel', $.proxy(this.cycle, this)) |
| 340 | } |
| 341 | |
| 342 | Carousel.VERSION = '3.4.2' |
| 343 | |