Hi martijn,

if you change your code like this:

button1.addListener("execute", function(e) {
  var p = new qx.ui.tabview.Page("Test: " + count++);
  p.setShowCloseButton(true);
  tv.add(p);
  
  p.addListener("close", function(){
    p.destroy();
    label.setValue(qx.dev.ObjectSummary.getInfo().split("\n")[0]);
  });
  
  label.setValue(qx.dev.ObjectSummary.getInfo().split("\n")[0]);
});


Then it removes the objects again....

But I don't know if it is the right way to handle this ;)

Tobias


-----Ursprüngliche Nachricht-----
Von: Martijn Evers [mailto:mart...@realtimesolutions.nl] 
Gesendet: Donnerstag, 4. Februar 2010 13:58
An: qooxdoo Development
Betreff: [qooxdoo-devel] Page disposal in tabview

Hi,

I am building a application with a tabview widget. When I close a page 
the object stays in memory. I've build a little application to show my 
point in the playground: http://bit.ly/cR5tW4.

I don't know if this is a bug. Is there anyway to dispose it myself? 
Because I already tried by listening to the 'close' event and destroying 
the page. But this leads to a lot of errors.

Any thoughts about this?

Best regards,
Martijn

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to