Skip to main content

Search and Top Navigation

#2645 closed bug (fixed)

Opened April 03, 2008 11:25AM UTC

Closed April 03, 2008 03:40PM UTC

Last modified February 26, 2009 12:04PM UTC

[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:
Description

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() {
			uiDialog.hide();

must become

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

around line 276 of ui.dialog.js .

Attachments (0)
Change History (3)

Changed April 03, 2008 03:40PM UTC by scottgonzalez comment:1

resolution: → fixed
status: newclosed

Fixed in [5185]. Thanks.

Changed May 24, 2008 03:39AM UTC by comment:2

milestone: 1.2.4

Milestone 1.2.4 deleted

Changed February 26, 2009 12:04PM UTC by paul comment:3

milestone: → 1.5