Dialog: Stop tracking instance in destroy() to avoid memory leaks

Fixes #11125
Closes gh-1448
(cherry picked from commit ec1f393c39)
This commit is contained in:
TJ VanToll 2015-02-18 10:45:11 -05:00 committed by Scott González
parent b3710631e8
commit 04ab6e0388

View File

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