SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    ********* Ornithologist AtomicPenguin's Avatar
    Join Date
    May 2002
    Location
    Vancouver, BC
    Posts
    459
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    cloning objects by value

    Hey guys,

    Does anyone know of any generic code to clone an object (which only contains properties), which copies by value, not just reference?

    It seems as though there should be some sort of prefab recursive function that could work for any old object, so I didn't want to re-invent the wheel...

    Oh, and thanks for everyone's help with the htmlArea Generator problem I was having last month! :-) It's all up and running, and you can download it (free, of course) from here:
    http://www.interactivetools.com/foru...cgi?post=11443

  2. #2
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •