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

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -