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