jquery - Is continuation-style-programming prone to stack overflow -


in response this question jquery effects, thought using callback argument .fadein( 500, my_function ).

while in principle, viable idea, have no clue (and neither has jquery documentation :( ) if callback allowed recurse:

function keep_animating(){    $("#id").fadein(500).fadeout(500, keep_animating ); } 

you add debugger breakpoint , test if stack size increases or not. :)

however, since animations/fadings use settimeout/setinterval highly guess call depth not increase, i.e. it's not prone stack overflows.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -