Ticket #2542 (closed bug: fixed)
Callbacks are not triggered on animated methods with a speed of 0
| Reported by: | DanSwitzer2 | Owned by: | flesler |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | effects | Version: | 1.2.3 |
| Keywords: | animate show hide callback | Cc: | DanSwitzer2 |
| Blocking: | Blocked by: |
Description
If you have a callback defined to any of the jQuery FX and there's a 0 speed specified, then the callback is never triggered.
This is a problem when developing plug-ins that are allowing the user to specify the FX to run when making elements visible. If user wants to immediately have the element shown (by specifying a speed of 0,) then any defined callback does not run.
Attachments
Change History
Changed 5 years ago by DanSwitzer2
-
attachment
jquery_animate_0_bug.htm
added
Changed 4 years ago by Aidamina
-
attachment
fix_2542.diff
added
Possible fix for Ticked #2542 (still need confirmation)
comment:2 Changed 4 years ago by Aidamina
I added a possible fix for this problem. I haven't tested it yet. Since I don't seem to be able to compile jQuery on this machine.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

An example that shows the bug