0
0
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:
Chris Rebert 2014-04-25 17:50:38 -07:00
parent 4bd29bfcff
commit e114727ae9

View File

@ -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