Move function creation outside of loops when creating components with sprite()
Move function creation outside of loops when creating components with sprite()

craftyjs/Crafty,mucaho/Crafty,craftyjs/Crafty,starwed/Crafty,mucaho/Crafty,maciekwie/Crafty,maciekwie/Crafty,starwed/Crafty,starwed/Crafty,maciekwie/Crafty,mucaho/Crafty,craftyjs/Crafty