1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-08 22:56:46 +02:00

Carousel: rename private property

This commit is contained in:
GeoSot
2022-03-10 02:07:01 +02:00
committed by XhmikosR
parent ec0e1c220e
commit 3673933fe7
2 changed files with 8 additions and 8 deletions

View File

@@ -97,7 +97,7 @@ class Carousel extends BaseComponent {
this._interval = null
this._activeElement = null
this._isPaused = false
this._stayPaused = false
this._isSliding = false
this.touchTimeout = null
this._swipeHelper = null
@@ -139,7 +139,7 @@ class Carousel extends BaseComponent {
pause(event) {
if (!event) {
this._isPaused = true
this._stayPaused = true
}
if (SelectorEngine.findOne(SELECTOR_NEXT_PREV, this._element)) {
@@ -152,11 +152,11 @@ class Carousel extends BaseComponent {
cycle(event) {
if (!event) {
this._isPaused = false
this._stayPaused = false
}
this._clearInterval()
if (this._config.interval && !this._isPaused) {
if (this._config.interval && !this._stayPaused) {
this._updateInterval()
this._interval = setInterval(() => this.nextWhenVisible(), this._config.interval)