Permalink
Browse files

Don't run an animation if there is nothing to animate

  • Loading branch information...
Koen Bok
Koen Bok committed Apr 30, 2013
1 parent 2870f60 commit 524606aea12ef6848e11cdf5eba597ace1b74e2a
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/animation.coffee
@@ -29,7 +29,7 @@ class Animation extends EventEmitter
AnimationProperties: [
"view", "properties", "curve", "time",
"origin", "tolerance", "precision", "modifiers"
"origin", "tolerance", "precision", "modifiers", "limits"
"debug", "profile", "callback"
]
AnimatableCSSProperties: {
@@ -161,8 +161,8 @@ class Animation extends EventEmitter
# Throw a warning if we have nothing to animate
if animatedProperties.length is 0
console.error "Animation[#{@animationId}] Warning: nothing to animate"
console.log "Animation[#{@animationId}] Warning: nothing to animate"
return
########################################################
# Generate the keyframe css and insert

0 comments on commit 524606a

Please sign in to comment.