Ticket #5141 (closed defect: duplicate)

Opened 9 months ago

Last modified 9 months ago

Dialog hide() and then uninitialize() produces js error

Reported by: guest Owned by:
Priority: normal Milestone: 1.0.1
Component: Dijit Version: 1.0
Severity: normal Keywords: Dialog hide initialize
Cc: tk

Description

If you create a dialog, and then hide it, and uninitialize it, it produces an error: this.domNode has no properties. I use this when creating dialogs dynamically, and I have to uninitialize them in order to be able to create and show them again.

BTW, just unitializing without hiding it will destroy the widget without error, but it will leave the widget showing.

I'm using FF 2.0.0.8 on a Mac, against dojo 1.0.0

Attachments

dialog_test.html (1.2 kB) - added by guest 9 months ago.
Dialog test case - popup dialog and then hit "ok" to hide() and initialize()

Change History

Changed 9 months ago by guest

Dialog test case - popup dialog and then hit "ok" to hide() and initialize()

Changed 9 months ago by bill

Looks like #5118 but I guess subtly different.

Changed 9 months ago by tk

  • cc tk added

Same as #5118 I would say... the problem is, you have to allow time for the underlay widget to tear down... otherwise dlg.destroy() happens before the underlay's does and its domNode dissapears and you get the this.domNode error...

Changed 9 months ago by bill

  • status changed from new to closed
  • resolution set to duplicate
Note: See TracTickets for help on using tickets.