Bug Tracker

Ticket #11846 (closed bug: duplicate)

Opened 2 years ago

Last modified 2 years ago

animation complete handler shows wrong animation status

Reported by: shabunc@… Owned by: shabunc@…
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocking: Blocked by:

Description

Say, we call animate method on node $el and we if a complete handler. As it said in docs, complete is "a function to call once the animation is complete." Thus, *in case there's no other animation currently running" , $el.is(':animated') in complete handler should return false. It, nevertheless returns true.

Not only this is wrong because of the agreement about complete function, this also makes impossible to check whether other animations are running or not. And this is needed not that rare.

Change History

comment:1 Changed 2 years ago by sindresorhus

  • Owner set to shabunc@…
  • Status changed from new to pending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate:  http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.

comment:2 Changed 2 years ago by gnarf

  • Status changed from pending to closed
  • Resolution set to duplicate

comment:3 Changed 2 years ago by gnarf

Duplicate of #7157.

Note: See TracTickets for help on using tickets.