PDA

View Full Version : dialog.destroy doesn't always work



cwolves
10 Jul 2007, 6:28 PM
In IE only, dialog.destroy doesn't always work. I had to do this to ensure that the dialog left properly:

this.dialog.destroy();
if(this.dialog.el.dom.parentNode){ this.dialog.el.dom.parentNode.removeChild(this.dialog.el.dom); }

It seems to always remove the "shadow" behind the dialog that floats above the entire page, but sometimes the dialog sticks around for fun.

jack.slocum
10 Jul 2007, 8:05 PM
http://extjs.com/forum/showthread.php?t=8887