[webkit-dev] Proposed Timer API

Cameron McCormack cam at mcc.id.au
Thu Oct 2 20:24:44 PDT 2008


Justin Haygood:
> How about a static:
>
> Timer::startTimer(function(),delayInSeconds) ?

Browser JS APIs tend not to use static methods, i.e. functions on
constructor objects.  Whether that’s because the IDL being used doesn’t
support such a construct I’m not sure.  So usually those functions end
up on the Window object, at which point this suggestion seems to be
quite similar to Maciej’s proposal.

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


More information about the webkit-dev mailing list