aboutsummaryrefslogtreecommitdiff
path: root/js/src/tooltip.js
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2020-11-20 11:13:11 +0100
committerXhmikosR <[email protected]>2020-11-29 20:58:26 +0200
commit9eb9d02084dc914e614e8844e3ffdee4d0a25126 (patch)
tree4c6722f81a9336921b85879aff41bc748ff12a2b /js/src/tooltip.js
parent51a208f119522f8618801a6e61ff8d47cf89d4cf (diff)
downloadbootstrap-9eb9d02084dc914e614e8844e3ffdee4d0a25126.tar.xz
bootstrap-9eb9d02084dc914e614e8844e3ffdee4d0a25126.zip
add dispose in base component
Diffstat (limited to 'js/src/tooltip.js')
-rw-r--r--js/src/tooltip.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index 99f910efc..b84432065 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -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() {