benbarnett/jQuery-Animate-Enhanced — pull request #104 by gavrochelegnou (2012-10-19 12:31:53+00:00)
Title: Fixed missing callback when nested animations

There was a bug when a css animation is playing, then an animate() method is called, and the first animation ends before the "animate()" one.

In this case the cssCallback is fired, but not fully executed because of the first test "e.eventPhase != 2" (which is good)

But as the callback is instantiated with "one()" it won't be executed again at the end of the real animation.

Changing "one()" to "bind()" solves this problem, and the events don't stack because of the "self.unbind(transitionEndEvent)"
So should be all good ...