Posted By

simondiercks on 04/20/11


Tagged

dialog Dojo destroy onclose


Versions (?)

Recursively destroy Dojo Dialog onClose


 / Published in: JavaScript
 

  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  

You need to login to post a comment.