cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Pötz <reinhard_po...@gmx.net>
Subject RE: Copy javascript maps
Date Mon, 11 Aug 2003 20:02:36 GMT

Thank you very much! It worked perfectly!

Cheers,
Reinhard

> -----Original Message-----
> From: Christopher Oliver [mailto:coliver@SeeBeyond.com] 
> Sent: Monday, August 11, 2003 9:49 PM
> To: dev@cocoon.apache.org; reinhard@apache.org
> Subject: RE: Copy javascript maps
> 
> 
> var i;
> var result = {};
> for (i in map1) {
>    result[i] = map1[i];
> }
> for (i in map2) {
>    result[i] = map2[i];
> }
> 
> -----Original Message-----
> From: Reinhard Pötz [mailto:reinhard_poetz@gmx.net] 
> Sent: Monday, August 11, 2003 12:21 PM
> To: dev@cocoon.apache.org
> Subject: Copy javascript maps
> 
> 
> I have two javascript maps:
> 
> var map1 = { x : y };
> var map2 = { a : b };
> 
> I want to copy both maps into one single map. Does anybody 
> have an idea how I can achieve this?
> 
> Cheers,
> Reinharde
> 


Mime
View raw message