[Mapbender-dev] Re: [Mapbender] #120: replace [...] with dot notation in JS

2007-10-16 Thread Mapbender
#120: replace [...] with dot notation in JS --+- Reporter: christoph| Owner: mapbender_dev@lists.osgeo.org Type: refactoring | Status: new Priority: major|

Re: [Mapbender-dev] Re: [Mapbender] #120: replace [...] with dot notation in JS

2007-10-16 Thread Marc Jansen
Hey Christoph, this example works like a charm: var c = {}; // object var d = {}; // object c.test = testvalue; // dot on object d[test] = testvalue; // parens on object alert( c.toJSONString() ); // alerts: {test : testvalue} alert( c.toJSONString() === '{test:testvalue}' );

Re: [Mapbender-dev] Re: [Mapbender] #120: replace [...] with dot notation in JS

2007-10-16 Thread Christoph Baudson (WhereGroup)
Sorry for the last post. Ignore it. Too much copy and paste for any human to handle. Here's the version I intended to post -- To illustrate the difference, an example Does not work with toJSONString() currentLayer.layer_style[count] = []; currentLayer.layer_style[count][name] =