Skip to main content

Search and Top Navigation

#9005 closed bug (duplicate)

Opened January 23, 2013 09:53AM UTC

Closed January 23, 2013 02:07PM UTC

failed in _destroyOverlay when I destroy a modal dialog thau was never opened.

Reported by: JMGrange Owned by:
Priority: minor Milestone: none
Component: ui.dialog Version: 1.10.0
Keywords: Cc:
Blocked by: Blocking:

I create a modal dialog.

If I show this dialog the destroy works fine.

If I call the destroy dialog function without showing at least one time this dialog, the _destroyOverlay function failed beacause overlay is null.

I solve the problem by testing the overlayInstances value.

if ( $.ui.dialog.overlayInstances > 0 ) {


if ( !$.ui.dialog.overlayInstances ) {

this._off( this.document, "focusin" );




Attachments (0)
Change History (1)

Changed January 23, 2013 02:07PM UTC by scottgonzalez comment:1

resolution: → duplicate
status: newclosed

Duplicate of #9004.