diff options
| author | GeoSot <[email protected]> | 2022-03-10 02:07:01 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2022-03-10 15:22:14 +0200 |
| commit | 3673933fe74b4323267b0b0a7871a393ce2ff5cb (patch) | |
| tree | be64fa5d0d3c678784d4a5b5d6b20caa7b0bacf0 /js/src/carousel.js | |
| parent | ec0e1c220e2f9b1f4591b4c7f12a622822f14014 (diff) | |
| download | bootstrap-3673933fe74b4323267b0b0a7871a393ce2ff5cb.tar.xz bootstrap-3673933fe74b4323267b0b0a7871a393ce2ff5cb.zip | |
Carousel: rename private property
Diffstat (limited to 'js/src/carousel.js')
| -rw-r--r-- | js/src/carousel.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/src/carousel.js b/js/src/carousel.js index edaec08f2..5a9b2dc84 100644 --- a/js/src/carousel.js +++ b/js/src/carousel.js @@ -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) |
