Skip to main content

Bug Tracker

Side navigation

#9556 closed bug (invalid)

Opened June 10, 2011 08:20AM UTC

Closed June 14, 2011 01:58PM UTC

fadeOut callback calls back immediately

Reported by: martijn@thany.nl Owned by: martijn@thany.nl
Priority: low Milestone: 1.next
Component: effects Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:
Description

The callback for fadeOut is being called immedaitely after *starting* the fadeOut process. Suppose this code:

console.log(fading out");

$("element").fadeOut(1000, "swing", function() {

console.log("faded out");

});

It should take ~1sec between the two console.log calls, but they are being executed immediately after one another. It sees the callback is called when staring the fadeout, instead of after finishing it.

Attachments (0)
Change History (3)

Changed June 11, 2011 07:22PM UTC by dmethvin comment:1

owner: → martijn@thany.nl
status: newpending

Can you provide a complete test case, preferably on jsfiddle.net? Thanks.

Changed June 14, 2011 08:28AM UTC by anonymous comment:2

I can't seem to make a reproduction of the problem in jsFiddle. Probably it can't provide just the right circumstances for this bug to surface.

It must be some edge-case where jQuery thinks the element in question is already invisible and therefor doesn't bother waiting to call the callback. However, the animation still happened, and no matter how you look at it, a callback can never be called before the process its calling back from, has finished.

Changed June 14, 2011 01:58PM UTC by timmywil comment:3

component: unfiledeffects
priority: undecidedlow
resolution: → invalid
status: pendingclosed

Without a way to reproduce this issue, we cannot help further. We can reopen in the future if needed.