Just because you can technically do something doesn't make it a good idea!
Have you considered making cloneConfig function on your object that will
copy what it needs to, to a config object? You can then feed that config
object into a new object constructor.
Again, no one is quite sure what you're trying to do, but a little
manual work can go a long way.
C
On 03/12/2011 14:22, Mariusz Nowak wrote:
I use
this: https://github.com/medikoo/es5-ext/blob/master/lib/Object/prototype/clone.js
However I rarely find valid use case for that :)
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]