Bug Tracker

Opened 10 years ago

Closed 10 years ago

#12866 closed bug (notabug)

In animate() [callback] doesn't work when [step] is set.

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:


When using step-option with animate() the callback-function doesn't work.

$("BODY").animate({}, function() {alert('Alert !!!');});
$("BODY").animate({}, {step: function() {}}, function() {alert('No alert...');});

Bug ?

Change History (1)

comment:1 Changed 10 years ago by Timmy Willison

Resolution: notabug
Status: newclosed

When supplying options to animate, include your complete callback in the options:

    step: function() {},
    complete: function() {}

Documented here: http://api.jquery.com/animate/ (notice the different signatures)

Note: See TracTickets for help on using tickets.