diff options
author | Jacob Thornton <jacobthornton@gmail.com> | 2012-06-03 05:06:00 +0400 |
---|---|---|
committer | Jacob Thornton <jacobthornton@gmail.com> | 2012-06-03 05:06:00 +0400 |
commit | 806a82ef8326e9a7b9b21fce91b827f478298519 (patch) | |
tree | d03df9899bcd8f5afbeb74b476a09508d0c65cef /js/bootstrap-carousel.js | |
parent | 037107480de9dd11095553ee409cbc748b5c7a68 (diff) |
add relatedTarget to carousel slide event
Diffstat (limited to 'js/bootstrap-carousel.js')
-rw-r--r-- | js/bootstrap-carousel.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/bootstrap-carousel.js b/js/bootstrap-carousel.js index 551de58911..1a82374cc2 100644 --- a/js/bootstrap-carousel.js +++ b/js/bootstrap-carousel.js @@ -90,7 +90,9 @@ , direction = type == 'next' ? 'left' : 'right' , fallback = type == 'next' ? 'first' : 'last' , that = this - , e = $.Event('slide') + , e = $.Event('slide', { + relatedTarget: $next[0] + }) this.sliding = true |