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

On 02/22/2012 06:13 PM, Anne van Kesteren wrote:
> 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.

Authors already have to do that, because we won't remove the 
functionality from existing APIs.

Ms2ger

Received on Wednesday, 22 February 2012 17:19:52 UTC