On Sat, Mar 2, 2013 at 5:03 AM, David Bruant <bruan...@gmail.com> wrote:
> If someone wants to reuse the same function for requestionAnimationFrame, > he/she has to go through: > requestAnimationFrame(function f(){ > requestAnimationFrame(f); > // do stuff > }) > FYI, this pattern is cleaner, so you only have to call requestAnimationFrame in one place: function draw() { // render requestAnimationFrame(draw); } draw(); -- Glenn Maynard