Skip to main content

Search and Top Navigation

#9032 closed bug (duplicate)

Opened January 30, 2013 06:14PM UTC

Closed January 30, 2013 06:25PM UTC

Dialog widget in v1.10 gets javascript error invoking destroy method

Reported by: rmzpfef Owned by:
Priority: minor Milestone: none
Component: ui.core Version: 1.10.0
Keywords: Cc:
Blocked by: Blocking:
Description

I create a dialog widget specifying autoopen false. I never open the dialog and call the destroy method. It gets an exception at line 9491 (not minned version): Cannot call method 'remove' of undefined. Statement is this.overlay.remove();

I know why it happens. It does not create the overlay until the dialog is opened. Since I never opened it on the destroy it tries to remove the overlay without checking if it was created.

This behavior is new for v1.10. It worked fin in v1.9.

Even setting the uiBackCompat to true does not fix this.

I will fix in my own copy. Please let me know if I am not using the destroy function properly.

Thank you

Attachments (0)
Change History (1)

Changed January 30, 2013 06:25PM UTC by scottgonzalez comment:1

resolution: → duplicate
status: newclosed

Duplicate of #9004.