rem: var s = Map.PolygonSets[editObjectN]; 
add: var s = Map.PolygonSets[BitMap.Edit.editObjectN]; 
context: BitMap.Edit.updatePolygonSet = function(rslt){	    //@todo change this - bad harding coded ref to the map data - not nice      var Map = BitMap.MapData[0].Map;            	var xml = rslt.responseXML;			var s = Map.PolygonSets[editObjectN];			var oldStyle = s.style_id;			var oldLineStyle = s.polylinestyle_id;	 		//shorten var names			var id = xml.documentElement.getElementsByTagName('set_id');						s.set_id = parseInt(id[0].firstChild.nodeValue);			var nm = xml.documentElement.getElementsByTagName('name');			s.name = nm[0].firstChild.nodeValue;			var dc = xml.documentElement.getElementsByTagName('description');			s.description = dc[0].firstChild.nodeValue;			var sy = xml.documentElement.getElementsByTagName('style_id');			s.style_id = parseInt(sy[0].firstChild.nodeValue);						var psy = xml.documentElement.getElementsByTagName('polylinestyle_id');			s.polylinestyle_id = parseInt(psy[0].firstChild.nodeValue);			var pol = xml.documentElement.getElementsByTagName('plot_on_load');			if (pol[0].firstChild.nodeValue == 'true'){s.plot_on_load = true;}else{s.plot_on_load = false};			var sp = xml.documentElement.getElementsByTagName('side_panel');			if (sp[0].firstChild.nodeValue == 'true'){s.side_panel = true;}else{s.side_panel = false};			var ex = xml.documentElement.getElementsByTagName('explode');			if (ex[0].firstChild.nodeValue == 'true'){s.explode = true;}else{s.explode = false};			if ( oldStyle != s.style_id || oldLineStyle != s.polylinestyle_id) {				a = Map.Polygons;           	//if the length of the array is > 0           	if (a.length > 0){             	//loop through the array           		for(n=0; n<a.length; n++){             		//if the array item is not Null           			if (a[n]!= null && a[n].polygon != null && a[n].set_id == s.set_id){							//update the style ids							a[n].style_id = s.style_id;							a[n].polylinestyle_id = s.polylinestyle_id							//unload the polygon         				Map.map.removeOverlay( a[n].polygon );                 		//create polygon							Map.attachPolygon(n);       				}       			}       		}			};			// update the sets menus			BitMap.Edit.editPolygons();}
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/cc6f22930d4e12134b6173f5ac3df158f26afdfa/Edit.js/buggy/templates/Edit.js