Sebastian Werner schrieb:
Dietrich Streifert schrieb:
Shouldn't this be solved in general by modifying the _disposeObjects method?
The disposal of an object makes a reference from its parent useless.
So shouldn't some code like:
parent = objToDispose.getParent();
if(parent) parent.remove(objToDispose);
No, this is not a good idea. In most of the cases this will lead to
unneeded DOM modifications especially when quiting the application
(leaving the page).
It is better to fix this individually for each occourence.
E.g. If a class uses a popup and add it do the document it should also
remove it from the document on disposal.
OK! Applied Nicks patch in rev. 8551 of trunk.
Thank you Nick.
--
Mit freundlichen Grüßen
Dietrich Streifert
--
Visionet GmbH
Firmensitz: Am Weichselgarten 7, 91058 Erlangen
Registergericht: Handelsregister Fürth, HRB 6573
Geschäftsführer: Stefan Lindner
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel