Permalink
Browse files

Add limit to Animator.values

  • Loading branch information...
nvh committed Jun 30, 2016
1 parent b032241 commit 6d9790da18973dc85fd7d8dd3e4dd1533f899871
Showing with 4 additions and 5 deletions.
  1. +4 −5 framer/Animator.coffee
View
@@ -22,13 +22,12 @@ class exports.Animator
finished: ->
throw Error "Not implemented"
values: (delta=1/60)->
values: (delta=1/60,limit=100)->
values = []
while not @finished()
for i in [0..limit]
values.push(@next(delta))
if @finished()
break
return values

0 comments on commit 6d9790d

Please sign in to comment.