Hi, The Prototype docs on Object.clone() says that it "Clones the passed object using shallow copy (copies all the original's properties to the result)." However, if I give my array some extra properties, they will not get copied! Try this: var x=[];x.foo=1;var y=x.clone();alert(y.foo);
Rather disappointing! I'm using prototype-1.6.0.3.js. /Jon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
