The button appearance will be resetted with the mouseup event. I think you should be able to solve the issue using the "disappear" or "afterDisappear" event instead of directly handling this in the function.
Cheers, Sebastian Simon Bull schrieb: > Hi All, > > I'm using Qx 0.6.2-pre (r4314). > > I am trying to dispose() of "closed" qx.ui.window.Window instances so > that I can minimise the browser's memory usage. > > I invoke dispose() at the end of qx.ui.window.Window._onclosebuttonclick(). > > With this change, clicking the close button hide()s the window as usual, > but does not seem to be cleanly disposed (no memory appears to be > freed). The following message appear on the logging console: > > qx.ui.form.Button[227] > 007063: Could not dispatch event of type "mouseup": TypeError - > 'this._states' is null or not an object (#-2146823281) > qx.theme.appearance.DefaultAppearanceTheme[7] > 007063: Couldn't apply state appearance: TypeError - 'abandoned' is null > or not an object (#-2146823281) > 007063: Couldn't apply state appearance: TypeError - 'pressed' is null > or not an object (#-2146823281) > 007063: Couldn't apply state appearance: TypeError - 'maximized' is null > or not an object (#-2146823281) > 007063: Couldn't apply state appearance: TypeError - 'active' is null or > not an object (#-2146823281) > > > Does anyone know why these errors occur? Is there a clean way to > dispose of qx.ui.window.Window instances? > > Thanks, > > Simon > > ------------------------------------------------------------------------ > On Yahoo!7 > Caller tones: Replace your ring tone with your favourite sound clip! > <http://au.rd.yahoo.com/mail/tag/callertones/SIG=126ar4ut7/**http%3A%2F%2Fcallertones.yahoo7.mnetcorporation.com%2Fctonesinsider> > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
