Recursively destroy Dojo Dialog onClose


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. var dlg = new dijit.Dialog({
  2. id: name,
  3. title: titlestr,
  4. href: url,
  5. onClose: dojo.hitch(this, setTimeout(function(){
  6. if (!dijit.byId(name).open)
  7. dijit.byId(name).destroyRecursive();
  8. }, 500)),
  9. style: style
  10. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.