Jean-Baptiste BRIAUD -- Novlog wrote: > > You can do the following in js : > var someValue = ... > var map = []; > map["key"] = someValue; >
I don't think that's a recommeded use of Arrays. AFAIK, Arrays are meant to be used only with numeric indexes. For all other uses, use objects (which are hash-maps). Douglas Crockford explains this very entertainingly here: http://developer.yahoo.com/yui/theater/video.php?v=crockonjs-2 Cheers, C. -- View this message in context: http://qooxdoo.678.n2.nabble.com/How-to-create-a-map-with-qooxdoo-tp5439514p5439565.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel