| 313 | // ========================= |
| 314 | |
| 315 | var Carousel = function (element, options) { |
| 316 | this.$element = $(element) |
| 317 | this.$indicators = this.$element.find('.carousel-indicators') |
| 318 | this.options = options |
| 319 | this.paused = null |
| 320 | this.sliding = null |
| 321 | this.interval = null |
| 322 | this.$active = null |
| 323 | this.$items = null |
| 324 | |
| 325 | this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this)) |
| 326 | |
| 327 | this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element |
| 328 | .on('mouseenter.bs.carousel', $.proxy(this.pause, this)) |
| 329 | .on('mouseleave.bs.carousel', $.proxy(this.cycle, this)) |
| 330 | } |
| 331 | |
| 332 | Carousel.VERSION = '3.3.7' |
| 333 | |