[webkit-dev] Proposed Timer API

George Staikos 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:
>>>
>>>  http://dev.w3.org/SVG/profiles/1.2T/publish/ 
>>> svgudom.html#svg__SVGTimer
>
> 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  
>> instead
>> 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.

--
George Staikos
Torch Mobile Inc.
http://www.torchmobile.com/



More information about the webkit-dev mailing list