Results 1 to 2 of 2

Thread: dialog.destroy doesn't always work

  1. #1
    Ext User
    Join Date
    May 2007
    Posts
    45
    Vote Rating
    1
      0  

    Default dialog.destroy doesn't always work

    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.

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956
    Vote Rating
    20
      0  
    Jack Slocum
    Sencha Co-Founder, Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •