W3C home > Mailing lists > Public > public-web-perf@w3.org > June 2011

Re: ISSUE-7: FrameRequestCallback interface should be designated as Callback=FunctionOnly [Request Animation Frame]

From: Cameron McCormack <cam@mcc.id.au>
Date: Thu, 2 Jun 2011 11:17:08 +1200
To: pettay@mappi.helsinki.fi
Cc: Savil Srivastava <Savil.Srivastava@microsoft.com>, Web Performance Working Group WG <public-web-perf@w3.org>
Message-ID: <20110601231708.GE18404@wok.mcc.id.au>
Olli Pettay:
> Is there any reason to not allow objects?
> 
> DOM Events happen to be one of the most commonly used
> interfaces using callbacks. For consistency callbacks should work
> the same way.
> (if they don't in geolocation, that could be a bug in that draft.
>  geolocation is a bit strange API anyway.)
> 
> Supporting objects allows one to easily handle the state related to
> callback handling.

You can of course put additional properties on the Function object,
although you couldn’t use an object initialiser.  Maybe we should
discuss this broader question of what what specs should do in general on
public-script-coord?

-- 
Cameron McCormack ≝ http://mcc.id.au/
Received on Wednesday, 1 June 2011 23:17:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 1 June 2011 23:17:39 GMT