Skip to content

Commit

Permalink
make invalid color strings transparent conforming to css
Browse files Browse the repository at this point in the history
  • Loading branch information
J.P.P Treub committed Jan 4, 2016
1 parent 209a50d commit f797a36
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions framer/Color.coffee
Expand Up @@ -333,6 +333,13 @@ inputData = (color, g, b, alpha) ->
if typeof color == "string"
color = stringToObject(color)

if !color
color =
r:0
g:0
b:0
a:0

if color.hasOwnProperty("type")
type = color.type

Expand Down

0 comments on commit f797a36

Please sign in to comment.