Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax for complete callback. Complete should be in second param. #170

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hannesjohansson
Copy link

The 'as "complete"' test is broken in both IE and Chrome as the complete callback is fired before the animation ends. This is fixed by passing complete as a part of the second parameter object.

This is also how jQuery animate does it, as transition() follows its syntax:
http://api.jquery.com/animate/

Passing a complete callback inside the first object does not work in $.fn.animate:
http://codepen.io/anon/pen/fErzb

@hannesjohansson
Copy link
Author

This pull request fixes the bug in the test case:
chalkchisel@05a2de3

But to be compatible with jquery.animate() you should still pass the complete function in the second parameter

@hannesjohansson
Copy link
Author

This is the same issue as #169

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant