diff options
author | TJ VanToll <tj.vantoll@gmail.com> | 2015-02-18 10:45:11 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2015-03-10 12:00:06 -0400 |
commit | 04ab6e0388f248b2490c2bc663528657ba39051a (patch) | |
tree | 8f69c2dd1805a43045884d80507c40cec3f4df18 | |
parent | b3710631e8d21ef9165ef9f037590e1d250350b4 (diff) | |
download | jquery-ui-04ab6e0388f248b2490c2bc663528657ba39051a.tar.gz jquery-ui-04ab6e0388f248b2490c2bc663528657ba39051a.zip |
Dialog: Stop tracking instance in destroy() to avoid memory leaks
Fixes #11125
Closes gh-1448
(cherry picked from commit ec1f393c39aa5bbac1158acf692271f8ce9518ce)
-rw-r--r-- | ui/dialog.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/dialog.js b/ui/dialog.js index e5c0bfe21..d10b83657 100644 --- a/ui/dialog.js +++ b/ui/dialog.js @@ -150,6 +150,7 @@ return $.widget( "ui.dialog", { var next, originalPosition = this.originalPosition; + this._untrackInstance(); this._destroyOverlay(); this.element |