[webkit-dev] Proposed Timer API
staikos at kde.org
Fri Oct 3 03:29:35 PDT 2008
On 3-Oct-08, at 3:01 AM, Cameron McCormack wrote:
> Hi Maciej.
> Cameron McCormack:
>>> If possible, it would be nice if there could be some degree of
>>> compatibility between this proposed API and the one in SVG Tiny 1.2:
> Maciej Stachowiak:
>> I considered that, but I don't like the fact that it makes the common
>> zero-delay continuation callback case into three lines of code
>> of one, for what I think is no practical benefit.
> Justin’s proposed API seems to need four lines for that case:
> var t = new Timer();
> t.repeatCount = 1;
Just curious - does that mean "repeat once" or "fire once"?
Seems ambiguous on first glance.
I like Maciej's simple proposal better.
Torch Mobile Inc.
More information about the webkit-dev