aboutsummaryrefslogtreecommitdiff
path: root/js/carousel.js
diff options
context:
space:
mode:
authorfat <[email protected]>2013-05-16 17:18:15 -0700
committerfat <[email protected]>2013-05-16 17:18:15 -0700
commit149ecd21bf7c56df897088d09ca309eb43a7dd9d (patch)
tree9138ea6d99244c3abf114069482c8c397a0bc2cd /js/carousel.js
parent53bc93282fbeab3c1b779f1914ab040290668369 (diff)
downloadbootstrap-149ecd21bf7c56df897088d09ca309eb43a7dd9d.tar.xz
bootstrap-149ecd21bf7c56df897088d09ca309eb43a7dd9d.zip
straight trash wang
Diffstat (limited to 'js/carousel.js')
-rw-r--r--js/carousel.js7
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
// =================