W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2009

Re: Type of CustomEvent::detail

From: Anne van Kesteren <annevk@opera.com>
Date: Fri, 18 Sep 2009 10:57:51 +0200
To: "Cameron McCormack" <cam@mcc.id.au>
Cc: www-dom@w3.org
Message-ID: <op.u0f26p0864w2qv@annevk-t60>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:03 GMT