I have a function that needs to close a Dojo dialog if it is currently open. How can I determine if a dojo dialog is active? Should I rely on pure JavaScript and check for its existence by ID?
if (dijit.byId("blah") !== undefined) {
destroyRecursive dijit;
}
Alternatively, should I use a method or property of the dialog object such as:
isFocusable
isLoaded