mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-19 22:10:24 +00:00
Tooltip: Destroy $tip, $arrow, $viewport to avoid memory leak
Closes #16039.
This commit is contained in:
parent
09f98453ce
commit
7429fc7ff9
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue