Opened 12 years ago
Closed 12 years ago
#9556 closed bug (invalid)
fadeOut callback calls back immediately
Reported by: | Owned by: | ||
---|---|---|---|
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 12 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:2 Changed 12 years ago by
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 12 years ago by
Component: | unfiled → effects |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | pending → closed |
Without a way to reproduce this issue, we cannot help further. We can reopen in the future if needed.
Can you provide a complete test case, preferably on jsfiddle.net? Thanks.