Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#2645 closed bug (fixed)

[ui.dialog] Overlay must be destroyed, when calling $().dialog("destroy")

Reported by: c_t Owned by: paul
Priority: major Milestone: 1.5
Component: ui.core Version: 1.2.3
Keywords: Cc:
Blocked by: Blocking:


Currently the overlay is only destroyed when calling $('#example').dialog('close') but not when calling $('#example').dialog('destroy).

However the overlay must be destroyed, when destroying a dialog! This can simply be acchieved by adding one line to the destroy-method:

this.destroy = function() {

must become

this.destroy = function() {
			this.overlay && this.overlay.destroy();

around line 276 of ui.dialog.js .

Change History (3)

comment:1 Changed 12 years ago by Scott González

Resolution: fixed
Status: newclosed

Fixed in [5185]. Thanks.

comment:2 Changed 12 years ago by (none)

Milestone: 1.2.4

Milestone 1.2.4 deleted

comment:3 Changed 11 years ago by paul

Milestone: 1.5
Note: See TracTickets for help on using tickets.