Permalink
Browse files

Smarter way of gettting nonAnimatible properties

  • Loading branch information...
nvh committed Jul 26, 2016
1 parent b0b408e commit 1fc72b88600e504a084708548cfd4069b64cf7da
Showing with 2 additions and 2 deletions.
  1. +2 −2 framer/Layer.coffee
View
@@ -907,9 +907,9 @@ class exports.Layer extends BaseClass
_.defaults(options,properties.options)
delete properties.options
animatableProperties = Animation.filterAnimatableProperties(properties)
nonAnimatableKeys = _.difference(_.keys(properties),_.keys(animatableProperties))
nonAnimatableProperties = _.pick(_.clone(properties),nonAnimatableKeys)
nonAnimatableProperties = _.omit(_.clone(properties),_.keys(animatableProperties))
options.properties = animatableProperties
options.layer = @

0 comments on commit 1fc72b8

Please sign in to comment.