Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann-S <johann.servoire@gmail.com>2020-11-20 13:13:11 +0300
committerXhmikosR <xhmikosr@gmail.com>2020-11-29 21:58:26 +0300
commit9eb9d02084dc914e614e8844e3ffdee4d0a25126 (patch)
tree4c6722f81a9336921b85879aff41bc748ff12a2b /js/src/tooltip.js
parent51a208f119522f8618801a6e61ff8d47cf89d4cf (diff)
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 99f910efc7..b844320653 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() {