Skip to content

Commit

Permalink
Renamed options to animationOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
nvh committed Sep 15, 2016
1 parent 209fec6 commit 86c4fa9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions framer/Layer.coffee
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class exports.Layer extends BaseClass
if options.hasOwnProperty(p) if options.hasOwnProperty(p)
@[p] = options[p] @[p] = options[p]


@options = {} @animationOptions = {}
@_stateMachine = new LayerStateMachine(@) @_stateMachine = new LayerStateMachine(@)
@_context.emit("layer:create", @) @_context.emit("layer:create", @)


Expand Down Expand Up @@ -913,7 +913,7 @@ class exports.Layer extends BaseClass
properties = options.properties properties = options.properties
delete options.properties delete options.properties


_.defaults(options,properties.options,@options) _.defaults(options,properties.options,@animationOptions)
delete properties.options delete properties.options


animatableProperties = Animation.filterAnimatableProperties(properties) animatableProperties = Animation.filterAnimatableProperties(properties)
Expand Down
4 changes: 2 additions & 2 deletions framer/LayerStates.coffee
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ class exports.LayerStates
layer.animate(last, options) layer.animate(last, options)
deprecatedProperty @, "animationOptions", null, stateMachine deprecatedProperty @, "animationOptions", null, stateMachine
, (layer) -> , (layer) ->
layer.options layer.animationOptions
, (layer, value) -> , (layer, value) ->
layer.options = value layer.animationOptions = value
deprecatedProperty @, "animatingKeys", null, stateMachine, (layer) -> deprecatedProperty @, "animatingKeys", null, stateMachine, (layer) ->
-> ->
keys = [] keys = []
Expand Down
2 changes: 1 addition & 1 deletion test/tests/LayerStatesTest.coffee
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ describe "LayerStates", ->
describe "Options", -> describe "Options", ->
it "should listen to layer.options", -> it "should listen to layer.options", ->
layer = new Layer layer = new Layer
layer.options = layer.animationOptions =
time: 4 time: 4
animation = layer.animate animation = layer.animate
x: 100 x: 100
Expand Down

0 comments on commit 86c4fa9

Please sign in to comment.