diff options
| author | GeoSot <[email protected]> | 2021-05-11 09:04:42 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-05-11 09:04:42 +0300 |
| commit | 03842b5f259d6007db02c465e6c55929e551e9cd (patch) | |
| tree | b5ec0345127f40dd0918ef6828c3057ca57a4c3a /js/src/carousel.js | |
| parent | 052def456845c2147e4e6c99d17bba12fcbee34c (diff) | |
| download | bootstrap-03842b5f259d6007db02c465e6c55929e551e9cd.tar.xz bootstrap-03842b5f259d6007db02c465e6c55929e551e9cd.zip | |
Refactor: move disposing properties into the base class (#33740)
Moves more functionality to `base-component`, transferring the responsibility of disposal to parent class.
Each component, dusting disposal, sets its protected properties to `null`. So the same can be done in one place for all children components .
Diffstat (limited to 'js/src/carousel.js')
| -rw-r--r-- | js/src/carousel.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/js/src/carousel.js b/js/src/carousel.js index 2f5cd9de9..92733637e 100644 --- a/js/src/carousel.js +++ b/js/src/carousel.js @@ -213,18 +213,6 @@ class Carousel extends BaseComponent { this._slide(order, this._items[index]) } - dispose() { - this._items = null - this._config = null - this._interval = null - this._isPaused = null - this._isSliding = null - this._activeElement = null - this._indicatorsElement = null - - super.dispose() - } - // Private _getConfig(config) { |
