Bug Tracker

Modify

Ticket #2542 (closed bug: fixed)

Opened 5 years ago

Last modified 4 years ago

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

jquery_animate_0_bug.htm Download (1.1 KB) - added by DanSwitzer2 5 years ago.
An example that shows the bug
fix_2542.diff Download (623 bytes) - added by Aidamina 4 years ago.
Possible fix for Ticked #2542 (still need confirmation)

Change History

Changed 5 years ago by DanSwitzer2

An example that shows the bug

comment:1 Changed 4 years ago by dmethvin

  • Owner set to flesler

Changed 4 years ago by Aidamina

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.

comment:3 Changed 4 years ago by flesler

  • Cc DanSwitzer2 added
  • need changed from Review to Commit
  • Status changed from new to assigned
  • Milestone changed from 1.2.4 to 1.3.3

comment:4 Changed 4 years ago by flesler

Fixed at [6559].

comment:5 Changed 4 years ago by dmethvin

  • Status changed from assigned to closed
  • Resolution set to fixed

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.