Skip to content

Commit

Permalink
Smarter way of gettting nonAnimatible properties
Browse files Browse the repository at this point in the history
  • Loading branch information
nvh committed Sep 15, 2016
1 parent b0b408e commit 1fc72b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framer/Layer.coffee
Expand Up @@ -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 = @

Expand Down

0 comments on commit 1fc72b8

Please sign in to comment.