craftyjs/Crafty — pull request #480 by sbyrnes321 (2013-06-01 15:44:52+00:00)
Title: performance: Only call _cascade() when there are children

This should help performance: With 100 childless moving sprites, this can avoid 100-200 unnecessary function calls per frame.

(Also fixed documentation of _cascade(). It's a bit vague, but that's better than being untrue!)

I tested this change with core.html unit tests