Permalink
Browse files

Merge pull request #232 from peteschaffner/fix/sublayer-construction

Allow property setters to create sub-layers in construction
  • Loading branch information...
koenbok committed Dec 14, 2015
2 parents 4a3b67f + 19aff18 commit 605eb084bb5478d5a4ca63e01e3ba4b418b9c842
Showing with 2 additions and 3 deletions.
  1. +2 −3 framer/Layer.coffee
@@ -53,8 +53,10 @@ class exports.Layer extends BaseClass
constructor: (options={}) ->
# Set needed private variables
@_properties = {}
@_style = {}
@_subLayers = []
# Special power setting for 2d rendering path. Only enable this
# if you know what you are doing. See LayerStyle for more info.
@@ -86,9 +88,6 @@ class exports.Layer extends BaseClass
if options.hasOwnProperty("index")
@index = options.index
# Set needed private variables
@_subLayers = []
@_context.emit("layer:create", @)
##############################################################

0 comments on commit 605eb08

Please sign in to comment.