$unlink isn't documented; the risk being that it may not be supported in the future.
2010/1/13 Fábio M. Costa <[email protected]> > var newHash = $unlink(oldHash); > > > -- > Fábio Miranda Costa > Solucione Sistemas > Engenheiro de interfaces > > > > On Tue, Jan 12, 2010 at 11:25 PM, Eneko Alonso <[email protected]>wrote: > >> It's simple... just create a new Hash. >> >> var clon = new Hash(clonedHash.getClean()); >> >> >> That should work >> >> >> >> On Sat, Jan 9, 2010 at 11:54 AM, אריה גלזר <[email protected]>wrote: >> >>> reading more i saw that this supplies me with a non-hash copy, but i do >>> need a hash... >>> >>> ----------- >>> אריה גלזר >>> 052-5348-561 >>> 5561 >>> >>> >>> On Sat, Jan 9, 2010 at 21:51, אריה גלזר <[email protected]> wrote: >>> >>>> im looking to clone the hash, not create an empty one... >>>> >>>> ----------- >>>> אריה גלזר >>>> 052-5348-561 >>>> 5561 >>>> >>>> >>>> On Sat, Jan 9, 2010 at 21:27, Piotr Zalewa <[email protected]> wrote: >>>> >>>>> a = this.hash.getClean() >>>>> will give you a standard object from a Hash >>>>> >>>>> 2010/1/9 אריה גלזר <[email protected]> >>>>> >>>>> hey. this is a very simple question that i'm dealing with - >>>>>> i have a class with a hash member. i want to send a copy of that hash >>>>>> to another function without modifying the original. >>>>>> doing: >>>>>> >>>>>> var a = this.hash >>>>>> >>>>>> will only create a reference. is there a simple way of copying objects >>>>>> or should i just iterate over it to create a new one? >>>>>> ----------- >>>>>> אריה גלזר >>>>>> 052-5348-561 >>>>>> 5561 >>>>>> Nothing selected >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> London, UK >>>>> >>>> >>>> Nothing selected >>>> >>> >>> Nothing selected >>> >> >> >
