cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Oliver" <coli...@SeeBeyond.com>
Subject RE: Copy javascript maps
Date Mon, 11 Aug 2003 19:49:01 GMT
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