Refactor color validator function - only allocate regexes once - get color name values from canvas instead of CSS; upcoming versions of Chrome no longer report color values in computed style - tighten up variable declarations - failed validation reverts to default value
Refactor color validator function
- only allocate regexes once
- get color name values from canvas instead of CSS; upcoming versions of Chrome no longer report color values in computed style
- tighten up variable declarations
- failed validation reverts to default value

positlabs/Seriously.js,positlabs/Seriously.js,brianchirls/Seriously.js,ECMachado/Seriously.js,brianchirls/Seriously.js,ECMachado/Seriously.js,mcanthony/Seriously.js,mcanthony/Seriously.js,ilikejames/Seriously.js,ilikejames/Seriously.js