0
0
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:
J2TeaM 2016-09-07 02:55:48 +07:00
parent 019502543b
commit edc43a4ea6
No known key found for this signature in database
GPG Key ID: EFEE20AE04DFEE31

View File

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