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

Reply via email to