Permalink
Browse files

Disabled deprecation warnings for now

Signed-off-by: Niels van Hoorn <nvh@nvh.io>
  • Loading branch information...
nvh committed Sep 15, 2016
1 parent cd057d1 commit 23a313a1570541bce630a10718a712cb76e7ccd8
Showing with 4 additions and 4 deletions.
  1. +1 −1 framer/Layer.coffee
  2. +3 −3 framer/LayerStates.coffee
View
@@ -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
@@ -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

0 comments on commit 23a313a

Please sign in to comment.