Re: recursive function calls
Here\'s an amusing one:the recursive function call that I had a question about a short while back contains a setTimeout(call for itself, time). The cyclic behaviour this creates is stopped by changing the value of a global check-variable that can be set outside of the function. Now, what it does is to move a layer around and the context it is in makes it possible to invoke the same behaviour again, during the time it is waiting for its next cycle. If that happens, the check-value change will never be detected, and its speed will be doubled, and keep doubling every time it happens. That will be pretty fast in the end...
So, I need to get a handle on each call object and kill it before the next one is created. Any suggestions?