mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
Carousel.slide: rename e => slideEvent
This commit is contained in:
parent
4bd29bfcff
commit
e114727ae9
@ -104,9 +104,9 @@
|
||||
if ($next.hasClass('active')) return this.sliding = false
|
||||
|
||||
var relatedTarget = $next[0]
|
||||
var e = $.Event('slide.bs.carousel', { relatedTarget: relatedTarget, direction: direction })
|
||||
this.$element.trigger(e)
|
||||
if (e.isDefaultPrevented()) return
|
||||
var slideEvent = $.Event('slide.bs.carousel', { relatedTarget: relatedTarget, direction: direction })
|
||||
this.$element.trigger(slideEvent)
|
||||
if (slideEvent.isDefaultPrevented()) return
|
||||
|
||||
this.sliding = true
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user