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

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
http://annevankesteren.nl/

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