Permalink
Browse files

Make sure gradients are compatible with states

  • Loading branch information...
jonastreub committed Jun 12, 2017
1 parent 7cea533 commit bfaf1547c2a7d5db14111a215db75c6169018dfd
Showing with 5 additions and 0 deletions.
  1. +5 −0 framer/LayerStates.coffee
@@ -61,6 +61,10 @@ class LayerStates
if Color.isValidColorProperty(k, v)
stateProperties[k] = new Color(v)
continue
if LinearGradient.isLinearGradient(v)
stateProperties[k] = v
continue
if @_isValidProperty(k, v)
stateProperties[k] = v
@@ -73,6 +77,7 @@ class LayerStates
return true if _.isBoolean(v)
return true if _.isString(v)
return true if Color.isColorObject(v)
return true if LinearGradient.isLinearGradient(v)
return true if v is null
return true if v?.constructor?.name is "Layer"
return false

0 comments on commit bfaf154

Please sign in to comment.