Ticket #5118 (closed defect: fixed)
Dialog: hide() followed quickly by destroy() throws error
| Reported by: | guest | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Dijit | Version: | 1.0 |
| Severity: | normal | Keywords: | dijit, dijit.Dialog, Dialog, destroy, destroyRecursive, hide |
| Cc: | tk |
Description (last modified by bill) (diff)
Calling dijit.Dialog.hide(), and then immediately calling dijit.Dialog.destroy() or dijit.Dialog.destroyRecursive() on a Dialog will throw an error "this.domNode has no properties". Interestingly, it cannot be caught by wrapping the call in a try/catch.
This is rather annoying since .hide() only hides the dialog, which makes it hard to do "throwaway" dialogs -- something that you create, use once, and destroy.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.