rstacruz/jquery.transit — pull request #170 by hannesjohansson (2013-10-16 09:33:56+00:00)
Title: Test syntax for complete callback. Complete should be in second param.

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/