Permalink
Browse files

Remove animation debug output

  • Loading branch information...
koenbok committed May 30, 2014
1 parent bb58df1 commit d16326a73b706b12e84e3d97838387a5d3aadb8a
Showing with 12 additions and 10 deletions.
  1. +9 −7 framer/Animation.coffee
  2. +3 −3 framer/AnimationLoop.coffee
View
@@ -44,10 +44,7 @@ class exports.Animation extends EventEmitter
time: 1
repeat: 0
delay: 0
debug: true
if options.layer is null
console.error "Animation: missing layer"
debug: false
if options.origin
console.warn "Animation.origin: please use layer.originX and layer.originY"
@@ -122,9 +119,13 @@ class exports.Animation extends EventEmitter
start: =>
if @options.layer is null
console.error "Animation: missing layer"
AnimatorClass = @_animatorClass()
console.debug "Animation.start #{AnimatorClass.name}", @options.curveOptions
if @options.debug
console.log "Animation.start #{AnimatorClass.name}", @options.curveOptions
@_animator = new AnimatorClass @options.curveOptions
@@ -139,8 +140,9 @@ class exports.Animation extends EventEmitter
if _.isEqual stateA, stateB
console.warn "Nothing to animate"
console.debug "Animation.start"
console.debug "\t#{k}: #{stateA[k]} -> #{stateB[k]}" for k, v of stateB
if @options.debug
console.log "Animation.start"
console.log "\t#{k}: #{stateA[k]} -> #{stateB[k]}" for k, v of stateB
@_animator.on "start", => @emit "start"
@_animator.on "stop", => @emit "stop"
@@ -33,7 +33,7 @@ AnimationLoop =
window.requestAnimationFrame AnimationLoop._tick
_stop: ->
console.debug "AnimationLoop._stop"
# console.log "AnimationLoop._stop"
AnimationLoop._running = false
@@ -42,8 +42,8 @@ AnimationLoop =
if not AnimationLoop._animators.length
return AnimationLoop._stop()
if AnimationLoop._sessionTime == 0
console.debug "AnimationLoop._start"
# if AnimationLoop._sessionTime == 0
# console.log "AnimationLoop._start"
AnimationLoop._frameCounter++

0 comments on commit d16326a

Please sign in to comment.