aboutsummaryrefslogtreecommitdiff
path: root/js/src/tooltip.js
diff options
context:
space:
mode:
authorGeoSot <[email protected]>2021-05-11 09:04:42 +0300
committerGitHub <[email protected]>2021-05-11 09:04:42 +0300
commit03842b5f259d6007db02c465e6c55929e551e9cd (patch)
treeb5ec0345127f40dd0918ef6828c3057ca57a4c3a /js/src/tooltip.js
parent052def456845c2147e4e6c99d17bba12fcbee34c (diff)
downloadbootstrap-03842b5f259d6007db02c465e6c55929e551e9cd.tar.xz
bootstrap-03842b5f259d6007db02c465e6c55929e551e9cd.zip
Refactor: move disposing properties into the base class (#33740)
Moves more functionality to `base-component`, transferring the responsibility of disposal to parent class. Each component, dusting disposal, sets its protected properties to `null`. So the same can be done in one place for all children components .
Diffstat (limited to 'js/src/tooltip.js')
-rw-r--r--js/src/tooltip.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index 65eb7a11c..7226d3123 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -219,17 +219,10 @@ class Tooltip extends BaseComponent {
this.tip.parentNode.removeChild(this.tip)
}
- this._isEnabled = null
- this._timeout = null
- this._hoverState = null
- this._activeTrigger = null
if (this._popper) {
this._popper.destroy()
}
- this._popper = null
- this.config = null
- this.tip = null
super.dispose()
}