diff options
| author | Niels Steenbeek <[email protected]> | 2015-03-10 15:38:04 +0100 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2015-04-20 23:29:31 -0700 |
| commit | 7429fc7ff965147fe218b3b4e124d922b08118f2 (patch) | |
| tree | 77277902d024a2f4d26c328003ada157903b16a6 | |
| parent | 09f98453ce432e3793d8e95a0c2664c2ec25864a (diff) | |
| download | bootstrap-7429fc7ff965147fe218b3b4e124d922b08118f2.tar.xz bootstrap-7429fc7ff965147fe218b3b4e124d922b08118f2.zip | |
Tooltip: Destroy $tip, $arrow, $viewport to avoid memory leak
Closes #16039.
| -rw-r--r-- | js/tooltip.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/tooltip.js b/js/tooltip.js index 27367880f..789d04f7a 100644 --- a/js/tooltip.js +++ b/js/tooltip.js @@ -440,6 +440,12 @@ clearTimeout(this.timeout) this.hide(function () { that.$element.off('.' + that.type).removeData('bs.' + that.type) + if (that.$tip) { + that.$tip.detach() + } + that.$tip = null + that.$arrow = null + that.$viewport = null }) } |
