mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-05 16:42:29 +03:00
add dispose in base component
This commit is contained in:
+1
-3
@@ -229,8 +229,6 @@ class Tooltip extends BaseComponent {
|
||||
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)
|
||||
|
||||
@@ -247,9 +245,9 @@ class Tooltip extends BaseComponent {
|
||||
}
|
||||
|
||||
this._popper = null
|
||||
this._element = null
|
||||
this.config = null
|
||||
this.tip = null
|
||||
super.dispose()
|
||||
}
|
||||
|
||||
show() {
|
||||
|
||||
Reference in New Issue
Block a user