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

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 UTC