1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-26 13:29:06 +02:00

add dispose in base component

This commit is contained in:
Johann-S
2020-11-20 11:13:11 +01:00
committed by XhmikosR
parent 51a208f119
commit 9eb9d02084
11 changed files with 13 additions and 32 deletions

View File

@@ -224,12 +224,11 @@ class Carousel extends BaseComponent {
}
dispose() {
super.dispose()
EventHandler.off(this._element, EVENT_KEY)
Data.removeData(this._element, DATA_KEY)
this._items = null
this._config = null
this._element = null
this._interval = null
this._isPaused = null
this._isSliding = null