Hi Alexey,

I'm wrong, you are totally right. As I could see now, destroying / disposing an 
instance of LayoutItem will destroy / dispose all children widgets.

And you are also right to ask, why the command property of buttons are not 
reset on destruction. Please open a BUG for this issue.

Gruß
Mustafa Sak

Applications & Integration

1&1 Internet AG
Ernst-Frey-Straße 10
DE-76135 Karlsruhe


-----Ursprüngliche Nachricht-----
Von: alexey.zakharenkov [mailto:[email protected]] 
Gesendet: Donnerstag, 16. Januar 2014 10:31
An: [email protected]
Betreff: Re: [qooxdoo-devel] Disposing Commands in menu destructor

Mustafa Sak-5 wrote
> In qooxdoo only "child" widgets managed by "child control" pattern [1] 
> will be automatically disposed if parent widget is disposing.

Menu buttons are disposed on menu disposal, it's a matter of fact and it's 
quite reasonable. One can be certain of that by inheriting a custom class from 
qx.ui.menu.Button where redefined destructor prints out a log message: 
http://tinyurl.com/nhoy6fm <http://tinyurl.com/nhoy6fm>  

or by inspecting the code of "add" method of qx.ui.menu.Menu to make sure that 
the menu.Buttons are managed by the Menu parent widget similarly to those which 
are added through the "child control pattern", at least in what relates memory 
management.


What about my question *"why menuButton doesn't unbind a coupled Command on
destruction?"* I see the root of my problem in this place as yet.






--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Disposing-Commands-in-menu-destructor-tp7585184p7585191.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical 
Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to