diff options
| author | fat <[email protected]> | 2013-05-16 17:18:15 -0700 |
|---|---|---|
| committer | fat <[email protected]> | 2013-05-16 17:18:15 -0700 |
| commit | 149ecd21bf7c56df897088d09ca309eb43a7dd9d (patch) | |
| tree | 9138ea6d99244c3abf114069482c8c397a0bc2cd /js/carousel.js | |
| parent | 53bc93282fbeab3c1b779f1914ab040290668369 (diff) | |
| download | bootstrap-149ecd21bf7c56df897088d09ca309eb43a7dd9d.tar.xz bootstrap-149ecd21bf7c56df897088d09ca309eb43a7dd9d.zip | |
straight trash wang
Diffstat (limited to 'js/carousel.js')
| -rw-r--r-- | js/carousel.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/js/carousel.js b/js/carousel.js index b647ee9f1..33b34af08 100644 --- a/js/carousel.js +++ b/js/carousel.js @@ -111,7 +111,7 @@ $next = $next.length ? $next : this.$element.find('.item')[fallback]() - var e = $.Event('slide', { relatedTarget: $next[0], direction: direction }) + var e = $.Event('bs:carousel:slide', { relatedTarget: $next[0], direction: direction }) if ($next.hasClass('active')) return @@ -159,11 +159,11 @@ $.fn.carousel = function (option) { return this.each(function () { var $this = $(this) - var data = $this.data('carousel') + var data = $this.data('bs-carousel') var options = $.extend({}, Carousel.DEFAULTS, typeof option == 'object' && option) var action = typeof option == 'string' ? option : options.slide - if (!data) $this.data('carousel', (data = new Carousel(this, options))) + if (!data) $this.data('bs-carousel', (data = new Carousel(this, options))) if (typeof option == 'number') data.to(option) else if (action) data[action]() else if (options.interval) data.pause().cycle() @@ -181,6 +181,7 @@ return this } + // CAROUSEL DATA-API // ================= |
