Re: Type of CustomEvent::detail

Cameron McCormack:
> > I suggest that the type of the detail attribute on CustomEvent be
> > changed to ‘any’, so that Numbers, Strings and Booleans can be stored
> > without them being converted to objects.

Anne van Kesteren:
> Maybe this can use "structured clone" from HTML5.

Does that buy us anything that just keeping a plain object reference
doesn’t?  (Cross-language support for structured data?)  I can imagine
use cases where you do want to keep references to original objects
stored in detail (e.g. Nodes).

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

Received on Friday, 18 September 2009 08:53:26 UTC