this._removeElement(rootElement)
}
- dispose() {
- Data.removeData(this._element, DATA_KEY)
- this._element = null
- }
-
// Private
_getRootElement(element) {
Data.setData(element, this.constructor.DATA_KEY, this)
}
+ dispose() {
+ Data.removeData(this._element, this.constructor.DATA_KEY)
+ this._element = null
+ }
+
/** Static */
static getInstance(element) {
this._element.setAttribute('aria-pressed', this._element.classList.toggle(CLASS_NAME_ACTIVE))
}
- dispose() {
- Data.removeData(this._element, DATA_KEY)
- this._element = null
- }
-
// Static
static jQueryInterface(config) {
}
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
}
dispose() {
- Data.removeData(this._element, DATA_KEY)
-
+ super.dispose()
this._config = null
this._parent = null
- this._element = null
this._triggerArray = null
this._isTransitioning = null
}
}
dispose() {
- Data.removeData(this._element, DATA_KEY)
+ super.dispose()
EventHandler.off(this._element, EVENT_KEY)
- this._element = null
this._menu = null
if (this._popper) {
this._popper.destroy()
[window, this._element, this._dialog]
.forEach(htmlElement => EventHandler.off(htmlElement, EVENT_KEY))
+ super.dispose()
+
/**
* `document` has 2 events `EVENT_FOCUSIN` and `EVENT_CLICK_DATA_API`
* Do not move `document` in `htmlElements` array
*/
EventHandler.off(document, EVENT_FOCUSIN)
- Data.removeData(this._element, DATA_KEY)
-
this._config = null
- this._element = null
this._dialog = null
this._backdrop = null
this._isShown = null
}
dispose() {
- Data.removeData(this._element, DATA_KEY)
+ super.dispose()
EventHandler.off(this._scrollElement, EVENT_KEY)
- this._element = null
this._scrollElement = null
this._config = null
this._selector = null
}
}
- dispose() {
- Data.removeData(this._element, DATA_KEY)
- this._element = null
- }
-
// Private
_activate(element, container, callback) {
}
EventHandler.off(this._element, EVENT_CLICK_DISMISS)
- Data.removeData(this._element, DATA_KEY)
- this._element = null
+ super.dispose()
this._config = null
}
dispose() {
clearTimeout(this._timeout)
- Data.removeData(this._element, this.constructor.DATA_KEY)
-
EventHandler.off(this._element, this.constructor.EVENT_KEY)
EventHandler.off(this._element.closest(`.${CLASS_NAME_MODAL}`), 'hide.bs.modal', this._hideModalHandler)
}
this._popper = null
- this._element = null
this.config = null
this.tip = null
+ super.dispose()
}
show() {