Permalink
Browse files

Fixed backwards compatibility for Vekter exporter

  • Loading branch information...
nvh committed Jul 13, 2017
1 parent 6229106 commit c7d4cda2cc94aeed99a056761569a9540d7edbb5
Showing with 3 additions and 1 deletion.
  1. +3 −1 framer/SVGLayer.coffee
View
@@ -13,7 +13,9 @@ toFill = (value) ->
class exports.SVGLayer extends Layer
constructor: (options={}) ->
options.backgroundColor ?= null
if options.backgroundColor?
# Backwards compatibility for old Vekter exporter
options.color ?= options.backgroundColor
super options
@define "fill", layerProperty(@, "fill", "fill", null, validFill, toFill)

0 comments on commit c7d4cda

Please sign in to comment.