Re: Type of CustomEvent::detail

On Fri, 18 Sep 2009 10:52:38 +0200, Cameron McCormack <cam@mcc.id.au>  
wrote:
> 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).

Oh yeah, I guess you do not need clones. My bad.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Friday, 18 September 2009 08:58:55 UTC