mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
Remove classes at one time
This commit is contained in:
parent
019502543b
commit
edc43a4ea6
@ -353,15 +353,10 @@ const Carousel = (($) => {
|
||||
$(activeElement)
|
||||
.one(Util.TRANSITION_END, () => {
|
||||
$(nextElement)
|
||||
.removeClass(directionalClassName)
|
||||
.removeClass(direction)
|
||||
.removeClass(directionalClassName + ' ' + direction)
|
||||
.addClass(ClassName.ACTIVE)
|
||||
|
||||
$(nextElement).addClass(ClassName.ACTIVE)
|
||||
|
||||
$(activeElement)
|
||||
.removeClass(ClassName.ACTIVE)
|
||||
.removeClass(direction)
|
||||
.removeClass(directionalClassName)
|
||||
$(activeElement).removeClass(ClassName.ACTIVE + ' ' + direction + ' ' + directionalClassName)
|
||||
|
||||
this._isSliding = false
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user