Page 1 of 1

Deep copy in Jade.

Posted: Fri Aug 07, 2009 2:19 pm
by ConvertFromOldNGs
by Carl Ranson >> Thu, 9 Sep 1999 1:54:07 GMT

Anyone out there got a deep copy method?
ie one that copies an object and recursivly any referenced objects that are referenced as parent/child

Cr

Re: Deep copy in Jade.

Posted: Fri Aug 07, 2009 2:19 pm
by ConvertFromOldNGs
by Eric Peachey >> Thu, 9 Sep 1999 3:50:07 GMT
Anyone out there got a deep copy method?

It would be nice if Jade had 'deep clone', 'copy' (copy all properties from one object to another) and 'isEqual' (are all properties on the objects the same) methods. I suppose the deep clone one would have an interesting effect if you deep cloned your system's root object!

Eric in Dunedin