https://github.com/craftyjs/Crafty/pull/556/files#r6943168