I highly recommend actually looking at the source code when you have
questions like this (you'll learn a lot). Your answer is in Core.js:
var Hash = new Native({
name: 'Hash',
initialize: function(object){
if ($type(object) == 'hash') object = $unlink(object.getClean());
for (var key in object) this[key] = object[key];
return this;
}
});
Hash will unlink *only other hashes*. Otherwise, no.
On Fri, Mar 5, 2010 at 6:46 AM, woomla <[email protected]> wrote:
> Still waiting for 1.3. In the mean time I use $unlink to clone
> objects. But will new Hash(object_or_hash) also clone?
>