Deep cloning objects defined by JSON.

Russell Leggett russell.leggett at gmail.com
Mon Jan 23 17:33:30 PST 2012


>
>
> As part of the HTML5 specification, there is the structured clone
> algorithm<http://www.w3.org/TR/html5/common-dom-interfaces.html#safe-passing-of-structured-data>
>
>
>
> Which is also incapable of copying a function.
>
>
True, but the original suggestion was limited only to the json subset.
Structured cloning is strictly more powerful than that, and implemented in
multiple browsers so I thought it was relevant to this conversation.

- Russ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120123/4591f9c6/attachment-0001.html>


More information about the es-discuss mailing list