You could always wrap it up in a plugin like deferred("fadeIn", 500) that
exposes a stopDeferred() method and handles both cases.

On 11/2/07, Gordon <[EMAIL PROTECTED]> wrote:
>
>
> To abort before the animation starts you'd use slearTimeout.  In the
> case where the animation has already started you'd use $
> (selector).stop ()
>
> On Nov 2, 12:17 am, "S. Robert James" <[EMAIL PROTECTED]> wrote:
> > I have an animation that runs after a delay:
> >
> > setTimeout(function(){$(".mbox").fadeIn('slow');},500);
> >
> > If I need to cancel it, how do I this?
> > I would like to cancel it regardless of whether it is still in the
> > initial setTimeout of 500ms, or has already started to fadeIn.
>
>


-- 
Yehuda Katz
Web Developer | Procore Technologies
(ph)  718.877.1325

Reply via email to