W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2013

The need to re-subscribe to requestAnimationFrame

From: David Bruant <bruant.d@gmail.com>
Date: Sat, 02 Mar 2013 12:03:20 +0100
Message-ID: <5131DC78.6010202@gmail.com>
To: Webapps WG <public-webapps@w3.org>
Hi,

If someone wants to reuse the same function for 
requestionAnimationFrame, he/she has to go through:
     requestAnimationFrame(function f(){
         requestAnimationFrame(f);
         // do stuff
     })

I was wondering why it was the case. Other event-like mechanism do not 
require to re-subscribe after an event happened.

Thanks,

David
Received on Saturday, 2 March 2013 11:03:48 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:57 GMT