Re: [RequestAnimationFrame] Integer identifiers: let's not make the same mistake again.

James Robinson:
> I'm not sure I understand exactly what you mean here - script can only
> cancel timers that it set.  Could you expand a bit on what you mean by
> "granted the right to do so"?

And if script you don’t control is running on your page, it being able
to cancel your requestAnimationFrame calls is probably the least of your
worries.

> The reason for using integer identifiers is to remain close to
> setTimeout/setInteval, but I think an opaque identifier would work equally
> well.  I'm not sure what benefit it would give, however.

I agree, I don’t see it providing enough benefits to warrant changing.

-- 
Cameron McCormack ≝ http://mcc.id.au/

Received on Tuesday, 28 June 2011 21:38:04 UTC