From 947ee8a309acf76480e47da08da486bac8bfc047 Mon Sep 17 00:00:00 2001 From: Coyote Date: Mon, 9 Jun 2014 13:11:04 -0700 Subject: [PATCH] Trigger bootstrap events This way we can catch the event and do some more stuff separate from the touch carousel code... --- src/js/touch-carousel.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/js/touch-carousel.js b/src/js/touch-carousel.js index f06d824..4ed8e40 100644 --- a/src/js/touch-carousel.js +++ b/src/js/touch-carousel.js @@ -203,6 +203,9 @@ this.$indicators.find('.active').removeClass('active'); this.$indicators.children().eq(index).addClass('active'); } + + this.$element.trigger('slid.bs.carousel'); + return this; }