Results 1 to 6 of 6

Thread: release resources Ext.Window

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    58

    Default release resources Ext.Window

    Can I assume that in such cases

    Code:
    var window = new Ext.Window ({...});
    ....
    delete window;
    window = new Ext.Window ({...})
    will not leak memory?

    p.s. If I close the window (not hide), then I can not re-create it
    p.s2. If I hide the window then can not the next time open the update headers for tables. Just creating a new object, I can guarantee that the headers will be created with the new data

  2. #2
    Sencha User
    Join Date
    Sep 2010
    Posts
    58

    Default

    nobody knows?

  3. #3
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    1. You can't name your variable 'window' (it's a reserved word in browsers!).

    2. No, removing the variable doesn't destroy the window. You will have to call window.destroy() yourself.

  4. #4
    Sencha User
    Join Date
    Sep 2010
    Posts
    58

    Default

    In other words, I can delete a line

    closeAction: 'hide',

    description of the window when you close - the window is automatically destroyed and when I open the window again, I am without any checks I can re-create the window

    this.wnd = new Ext.Window({...});

    this is true or is there any doubt?

  5. #5
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    Correct.

    Don't forget that closing a window will destroy ALL components inside, so when creating the window again you also have to recreate all child components.

  6. #6
    Sencha User
    Join Date
    Sep 2010
    Posts
    58

    Default

    OK, Thanks.

Similar Threads

  1. Ext.Direct resources..?
    By oatkiller in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 22 Jan 2010, 10:29 PM
  2. Co-existence of EXT JS Release 1.1 and Release 3
    By TheBerliner in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 17 Jul 2009, 1:26 AM
  3. Resources to learn Ext - Hang in there!
    By jack.slocum in forum Ext 2.x: Help & Discussion
    Replies: 21
    Last Post: 16 Jul 2008, 10:56 AM
  4. Good resources for EXT js
    By TeamNull-Jett in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 25 Jul 2007, 9:44 PM

Posting Permissions

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