rem: var a = this.Map.Polygons; 
add: var a = this.Map.polygons; 
context: BitMap.Edit.prototype.updatePolygonStyle = function(rslt){      var xml = rslt.responseXML;			//get the style we are updating			var s = this.Map.PolygonStyles[editObjectN];			// assign markerstyle values data array						var id = xml.documentElement.getElementsByTagName('style_id');			  		s.style_id = parseInt( id[0].firstChild.nodeValue );			var nm = xml.documentElement.getElementsByTagName('name');			  		s.name = nm[0].firstChild.nodeValue;			var tp = xml.documentElement.getElementsByTagName('polygon_style_type');			  		s.polygon_style_type = parseInt( tp[0].firstChild.nodeValue );			var cl = xml.documentElement.getElementsByTagName('color');			  		s.color = cl[0].firstChild.nodeValue;			var wt = xml.documentElement.getElementsByTagName('weight');			  		s.weight = parseInt( wt[0].firstChild.nodeValue );			var op = xml.documentElement.getElementsByTagName('opacity');			  		s.opacity = op[0].firstChild.nodeValue;			//update all polygons      	var a = this.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].style_id == s.style_id){						this.Map.map.removeOverlay(a[n].polygon);						this.Map.attachPolygon(n);    			}    		}    	}			// update the styles menus			this.editPolygonStyles();			this.editPolygons();}
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/2eef737ce2ef3e61972dfb2479a868b6936f6ae7/Edit.js/buggy/templates/Edit.js