Bug Tracker

Opened 14 years ago

Closed 14 years ago

#5276 closed bug (worksforme)

Callback function not executing after the specified time

Reported by: Rashy Owned by:
Priority: major Milestone: 1.4
Component: core Version: 1.3.2
Keywords: fadeIn, fadeOut, callback, incorrect duration Cc:
Blocked by: Blocking:

Description

I am using a simple snippet like this: $('#somediv').fadeOut(5000,function(){alert('Was this executed after 5 seconds?');}); I see the alert as soon as the code is executed not after the passed time in milliseconds! Please let me know if i have done some mistake or is it really a bug !?!

Change History (2)

comment:1 in reply to:  description Changed 14 years ago by Rashy

Please close this ticket! It was a problem with the chaining of elements in the example that i was using and the chained element was being replaced with a new one so fadeOut basically was not being linked to any element, hence no delay with the callback function. Sorry for any inconvenience caused. i <3 jQuery :D

comment:2 Changed 14 years ago by scottgonzalez

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.