Re: [qooxdoo-devel] How to dispose a finite state machine?

2016-03-08 Thread voger
I did a simple example of the problem. http://tinyurl.com/zg8nse2 After some investigation with the debugger it seems that the problem is the fact that I am trying to dispose the fsm object using it's own event handler. A walk through to explain better what I mean: 1. In the final state I clic

Re: [qooxdoo-devel] How to dispose a finite state machine?

2016-03-08 Thread Derrell Lipman
Right. My suggestion is that you shouldn't need to call fsm.dispose(). Instead, just set fsm = null; so it will be garbage collected. I don't believe there is anything here that needs "help" with disposing. Here's the modified example: http://tinyurl.com/zxmbrcj Cheers, Derrell On Tue, Mar

Re: [qooxdoo-devel] How to dispose a finite state machine?

2016-03-08 Thread voger
Thanks Derrell. It is great to hear from the author itself. It's just that I saw in the qx.util.fsm.FiniteStateMachine#destruct() code that it does some clean up functionality and wanted to be in the safe side. Plus if I wouldn't understand why it didn't work how I thought it should, I would l

Re: [qooxdoo-devel] How to dispose a finite state machine?

2016-03-08 Thread Derrell Lipman
So I've been thinking about this. Although what I told you is correct -- modern browsers, and even old ones, should have no problem automatically garbage collecting an FSM because it has no references to DOM objects and no circular references -- qooxdoo debug display logic could still be applied to