Deep copy in Jade.

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Deep copy in Jade.

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:19 pm

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

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Deep copy in Jade.

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:19 pm

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


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 9 guests