- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Sun, 08 Apr 2012 22:39:56 -0400
- To: Cameron McCormack <cam@mcc.id.au>
- CC: Kenneth Russell <kbr@google.com>, Glenn Maynard <glenn@zewt.org>, public_webgl@khronos.org, "public-script-coord@w3.org" <public-script-coord@w3.org>
On 4/8/12 10:35 PM, Cameron McCormack wrote: > Well, callback interfaces are meant to be for JS to provide a bunch of > callback-like properties and functions. I suppose it's not out of the > question to allow it to be returned from an operation. And it would be > consistent with being able to return a callback function type. > > Would a DOM object be able to create and return its own objects that > implement callback interfaces? I'm not sure what you mean. For one thing, it's not really quite defined what it means to "implement a callback interface"... > But we could allow it to return a > reference to an existing callback interface object that script created > and passed in. This seems to be the obvious use case that would require supporting callback interface return values. Assuming that there are APIs that return such things, of course. -Boris
Received on Monday, 9 April 2012 02:40:29 UTC