logo       

Re: recursive function + event : is this legal/supported ?: msg#00037

mozilla.devel.dom

Subject: Re: recursive function + event : is this legal/supported ?



rvj wrote:

If you have a recursive function A that generates an event which calls
function B,

can function B call subsequenly call function A ? Is this legal javascript
( Mozilla ) ?

Why not, you need to make sure that the recursion is stopped somewhere otherwise you get a stack overflow but besides that it should work.

--

Martin Honnen
http://JavaScript.FAQTs.com/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise