craftyjs/Crafty — pull request #731 by starwed (2014-02-12 21:50:08+00:00)
Title: Pause *before* firing "AnimationEnd"

Currently, if you try to play a new animation by binding to "AnimationEnd", it'll be paused right after the event fires. This just switches the order, and adds a test for animation chaining.

This was reported [on the forums](https://groups.google.com/forum/?fromgroups#!topic/craftyjs/FfVTSBfJXVM).