| 295 | // ========================= |
| 296 | |
| 297 | var Carousel = function (element, options) { |
| 298 | this.$element = $(element) |
| 299 | this.$indicators = this.$element.find('.carousel-indicators') |
| 300 | this.options = options |
| 301 | this.paused = null |
| 302 | this.sliding = null |
| 303 | this.interval = null |
| 304 | this.$active = null |
| 305 | this.$items = null |
| 306 | |
| 307 | this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this)) |
| 308 | |
| 309 | this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element |
| 310 | .on('mouseenter.bs.carousel', $.proxy(this.pause, this)) |
| 311 | .on('mouseleave.bs.carousel', $.proxy(this.cycle, this)) |
| 312 | } |
| 313 | |
| 314 | Carousel.VERSION = '3.3.5' |
| 315 | |