craftyjs/Crafty — pull request #774 by FallSe7en (2014-04-09 08:23:26+00:00)
Title: Fix for propogating 90deg rotations to child entities

Hi,

I noticed what I'm pretty sure is a bug in Crafty when rotating an entity by 90 degrees; the entity rotates fine, but the rotation doesn't get propagated to its children.

Here is a fiddle demonstrating the bug: http://jsfiddle.net/f8c4c/7/

Here's my suggested fix and an accompanying test. Strange thing though--when I revert my fix and run the test I wrote in grunt, it passes. Opening up the index.html in a browser, however, makes the test fail as expected (and pass with the fix applied). I'm new to grunt, so maybe I'm just missing something..

Anyways, hope this helps!
Justin