Why does show(0,callback) not run the callback function?

(Looking in the jQuery 1.1 code I see that is the way it is coded)

I ran into this issue because my code chooses an animation speed of zero
when the element contains too many items to animate smoothly. I found that
the callback only fired when a speed of more than zero was chosen.

I suppose that when 0 is specified, no animation is required, so there's no
timer animation and in a way there's no need for the callback because it
could just be called by by the next command instead. This does seem
inconsistent however.

Is this feature by design? Is it here to stay?

Many thanks,

George
-- 
View this message in context: 
http://www.nabble.com/Why-does-show%280%2Ccallback%29-not-run-the-callback-function--tf3491309.html#a9750419
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to