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
