Permalink
Browse files

postpone shadowStyles until after constructor

  • Loading branch information...
onnlucky committed Aug 29, 2017
1 parent 76592c1 commit e0abfdf12a23d83f7ec279d2be54912433f852a7
Showing with 3 additions and 0 deletions.
  1. +3 −0 framer/Layer.coffee
View
@@ -232,6 +232,8 @@ class exports.Layer extends BaseClass
delete @__constructor
@updateShadowStyle()
@onChange("size", @updateForSizeChange)
##############################################################
@@ -369,6 +371,7 @@ class exports.Layer extends BaseClass
@updateShadowStyle()
updateShadowStyle: ->
return if @__constructor
@_element.style.boxShadow = LayerStyle["boxShadow"](@)
@_element.style.textShadow = LayerStyle["textShadow"](@)
@_element.style.webkitFilter = LayerStyle["webkitFilter"](@)

0 comments on commit e0abfdf

Please sign in to comment.