]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Stop tracking instance in destroy() to avoid memory leaks
authorTJ VanToll <tj.vantoll@gmail.com>
Wed, 18 Feb 2015 15:45:11 +0000 (10:45 -0500)
committerScott González <scott.gonzalez@gmail.com>
Tue, 10 Mar 2015 16:00:06 +0000 (12:00 -0400)
Fixes #11125
Closes gh-1448
(cherry picked from commit ec1f393c39aa5bbac1158acf692271f8ce9518ce)

ui/dialog.js

index e5c0bfe21f9efea6ddf875755352aaf13fb72d6a..d10b836572d1411f0a70226f6f297f6cb54a32ef 100644 (file)
@@ -150,6 +150,7 @@ return $.widget( "ui.dialog", {
                var next,
                        originalPosition = this.originalPosition;
 
+               this._untrackInstance();
                this._destroyOverlay();
 
                this.element