Allinthedata/aframe-switch — pull request #1 by txangel (2014-11-17 13:35:18+00:00)
Title: This are my suggestions.

The states as a Hash are the best approach I have so far to simulate an enum (quick search on SO shows people using modules for that same but it's harder to check if a value is within the range)

I haven't tested it so beware of the bugs (: (I'll do that later)