I am running a function that needs to close a dojo dialog if it is loaded. How do I check if a dojo dialog is running? Do I use pure javascript and check by id if it is undefined?
if (dijit.byId("blah") !== undefined) { destroyRecursive dijit; }
Or do i use a property of the dialog object like isFocusable method isLoaded property