(element, options)
| 1776 | * ========================= */ |
| 1777 | |
| 1778 | var Carousel = function (element, options) { |
| 1779 | this.$element = $(element) |
| 1780 | this.$indicators = this.$element.find('.carousel-indicators') |
| 1781 | this.options = options |
| 1782 | this.options.pause == 'hover' && this.$element |
| 1783 | .on('mouseenter', $.proxy(this.pause, this)) |
| 1784 | .on('mouseleave', $.proxy(this.cycle, this)) |
| 1785 | } |
| 1786 | |
| 1787 | Carousel.prototype = { |
| 1788 |