mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Dialog: Stop tracking instance in destroy() to avoid memory leaks
Fixes #11125 Closes gh-1448
This commit is contained in:
parent
d58051ba1a
commit
ec1f393c39
@ -155,6 +155,7 @@ return $.widget( "ui.dialog", {
|
|||||||
var next,
|
var next,
|
||||||
originalPosition = this.originalPosition;
|
originalPosition = this.originalPosition;
|
||||||
|
|
||||||
|
this._untrackInstance();
|
||||||
this._destroyOverlay();
|
this._destroyOverlay();
|
||||||
|
|
||||||
this.element
|
this.element
|
||||||
|
Loading…
Reference in New Issue
Block a user