Bug Tracker

Opened 8 years ago

Closed 8 years ago

#12866 closed bug (notabug)

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

Reported by: seagull@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:

Description

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 8 years ago by timmywil

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.