Skip to main content

Bug Tracker

Side navigation

#11846 closed bug (duplicate)

Opened June 01, 2012 12:41PM UTC

Closed June 05, 2012 06:39PM UTC

Last modified June 05, 2012 06:39PM UTC

animation complete handler shows wrong animation status

Reported by: shabunc@gmail.com Owned by: shabunc@gmail.com
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
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.

Attachments (0)
Change History (3)

Changed June 01, 2012 01:05PM UTC by sindresorhus comment:1

owner: → shabunc@gmail.com
status: newpending

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.

Changed June 05, 2012 06:39PM UTC by gnarf comment:2

resolution: → duplicate
status: pendingclosed

Changed June 05, 2012 06:39PM UTC by gnarf comment:3

Duplicate of #7157.