Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Thornton <jacobthornton@gmail.com>2012-06-03 05:06:00 +0400
committerJacob Thornton <jacobthornton@gmail.com>2012-06-03 05:06:00 +0400
commit806a82ef8326e9a7b9b21fce91b827f478298519 (patch)
treed03df9899bcd8f5afbeb74b476a09508d0c65cef /js/bootstrap-carousel.js
parent037107480de9dd11095553ee409cbc748b5c7a68 (diff)
add relatedTarget to carousel slide event
Diffstat (limited to 'js/bootstrap-carousel.js')
-rw-r--r--js/bootstrap-carousel.js4
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