From f797a36bc5e577609e64e08610ea862a793db3b7 Mon Sep 17 00:00:00 2001 From: "J.P.P Treub" Date: Mon, 4 Jan 2016 14:39:21 +0100 Subject: [PATCH] make invalid color strings transparent conforming to css --- framer/Color.coffee | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/framer/Color.coffee b/framer/Color.coffee index 28c323fc7..f0149965f 100644 --- a/framer/Color.coffee +++ b/framer/Color.coffee @@ -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