mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-12 09:54:25 +01:00
Carousel: small refactoring, remove unnecessary checks
This commit is contained in:
parent
dd93551914
commit
d4e87d28cd
@ -301,8 +301,7 @@ class Carousel extends BaseComponent {
|
|||||||
const isNext = order === ORDER_NEXT
|
const isNext = order === ORDER_NEXT
|
||||||
const nextElement = element || getNextActiveElement(this._getItems(), activeElement, isNext, this._config.wrap)
|
const nextElement = element || getNextActiveElement(this._getItems(), activeElement, isNext, this._config.wrap)
|
||||||
|
|
||||||
if (nextElement && nextElement.classList.contains(CLASS_NAME_ACTIVE)) {
|
if (nextElement === activeElement) {
|
||||||
this._isSliding = false
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user