W3C home > Mailing lists > Public > public-web-perf@w3.org > February 2012

Re: [RequestAnimationFrame] Callback argument should be a callback interface, not just a callback

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 22 Feb 2012 18:13:24 +0100
To: public-web-perf@w3.org
Message-ID: <op.v93bgmee64w2qv@annevk-macbookpro.local>
On Wed, 22 Feb 2012 16:24:37 +0100, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 2/22/12 9:59 AM, Anne van Kesteren wrote:
>> We've had a long discussion on this and decided to simplify callbacks.
> Hmm.  I must have missed this discussion.  I don't see how this  
> simplifies callbacks at all, for _authors_...  what am I missing?

It's been a while since I read that thread, but it's the basic complexity  
argument. By offering more distinct APIs, authors have to learn more, make  
a choice, etc. and the additional functionality an object would bring is  
already available through JavaScript's bind() if I remember correctly.

Anne van Kesteren
Received on Wednesday, 22 February 2012 17:13:58 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:04:32 UTC