Skip to content

Commit

Permalink
Disabled deprecation warnings for now
Browse files Browse the repository at this point in the history
Signed-off-by: Niels van Hoorn <nvh@nvh.io>
  • Loading branch information
nvh committed Sep 15, 2016
1 parent cd057d1 commit 23a313a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion framer/Layer.coffee
Expand Up @@ -910,7 +910,7 @@ class exports.Layer extends BaseClass

#Support the old properties syntax
if properties.properties?
console.warn "Using Layer.animate with 'properties' key is deprecated: please provide properties directly and use the 'options' key to provide animation options instead"
# console.warn "Using Layer.animate with 'properties' key is deprecated: please provide properties directly and use the 'options' key to provide animation options instead"
options = properties
properties = options.properties
delete options.properties
Expand Down
6 changes: 3 additions & 3 deletions framer/LayerStates.coffee
Expand Up @@ -24,14 +24,14 @@ deprecatedProperty = (object, name, replacementSuggestion, stateMachine, getter,
message = "layer.states.#{name} is deprecated"
if replacementSuggestion?
message += ", use '#{replacementSuggestion}' instead."
console.warn message
# console.warn message
getter(stateMachine._layer)
set: (value) ->
if setter?
console.warn "layer.states.#{name} a reserved state name and might not work as expected."
# console.warn "layer.states.#{name} a reserved state name and might not work as expected."
setter(stateMachine._layer, value)
else
console.warn "layer.states.#{name} is a deprecated method, using it as a state name may cause unexpected behaviour in old projects."
# console.warn "layer.states.#{name} is a deprecated method, using it as a state name may cause unexpected behaviour in old projects."
stateMachine.properties[name] = value

class exports.LayerStates
Expand Down

0 comments on commit 23a313a

Please sign in to comment.