(element, options)
| 288 | * ========================= */ |
| 289 | |
| 290 | var Carousel = function (element, options) { |
| 291 | this.$element = $(element) |
| 292 | this.$indicators = this.$element.find('.carousel-indicators') |
| 293 | this.options = options |
| 294 | this.options.pause == 'hover' && this.$element |
| 295 | .on('mouseenter', $.proxy(this.pause, this)) |
| 296 | .on('mouseleave', $.proxy(this.cycle, this)) |
| 297 | } |
| 298 | |
| 299 | Carousel.prototype = { |
| 300 |