Bug Tracker

Opened 8 years ago

Closed 8 years ago

#9556 closed bug (invalid)

fadeOut callback calls back immediately

Reported by: martijn@… Owned by: martijn@…
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.

Change History (3)

comment:1 Changed 8 years ago by dmethvin

Owner: set to martijn@…
Status: newpending

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

comment:2 Changed 8 years ago by anonymous

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.

comment:3 Changed 8 years ago by timmywil

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.

Note: See TracTickets for help on using tickets.