Bug Tracker

Changes between Initial Version and Version 1 of Ticket #8489, comment 5


Ignore:
Timestamp:
Mar 10, 2011, 4:12:42 PM (9 years ago)
Author:
trusktr
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8489, comment 5

    initial v1  
    11I agree scott.gonzales: my example was very simple for the sole purpose of showing how it'd work. Of course, in a more realistic situation, you'd be calling .delay() amidst a chain of multiple jQuery animations where in the middle of this chain you might need to call a function that has no duration time associated with it but wherein you would still need a padding of time around that said function. This would come in handy when you want to pad .css(), .remove(), .append(), or any other durationless methods/functions with time.
    22
    3 I'm guessing that using .delay() incorporates javascript's native setTimeout() somewhere in the source code, right?
     3ajpiano, I'm guessing that using .delay() incorporates javascript's native setTimeout() somewhere in the source code, right?
    44
    55I guess the feature I'm asking for would do nothing more than the exact same thing you are doing when you use .queue() and .dequeue() like in my example above. It would be identical to the functionality of jQuery animations that use a "complete" parameter to launch functions only ''after'' animations are complete. In the case of .delay(), the animation is an animation-less animation that acts on nothing, but it still has a duration.