enyojs/enyo — pull request #709 by aarontam (2014-05-07 21:14:48+00:00)
Title: BHV-6832: Fire onEnd when rAF animation has actually finished.

Issue
-------
The `onEnd` event is fired before the animation has actually finished, which can have a negative impact on animation performance if there are complex operations that are run in the `onEnd` handler.

Fix
----
We make sure `onEnd` is sent at the end of the tick, after the final animation step, via `enyo.asyncMethod`.

Enyo-DCO-1.1-Signed-off-by: Aaron Tam