rem: var n = this.Map.Polygons.length; this.Map.Polygons[n] = new Array(); var p = this.Map.Polygons[n]; 
add: var n = this.Map.polygons.length; this.Map.polygons[n] = new Array(); var p = this.Map.polygons[n]; 
context: BitMap.Edit.prototype.addPolygon = function(rslt){      var xml = rslt.responseXML;	 		var s;			for(var a=0; a<this.Map.PolygonSets.length; a++){				if ( this.Map.PolygonSets[a] != null && this.Map.PolygonSets[a].set_id == this.editSetId ){					s = a;				}			};  		var n = this.Map.Polygons.length;  		this.Map.Polygons[n] = new Array();			var p = this.Map.Polygons[n];  		p.array_n = n;				 		//shorten var names			var id = xml.documentElement.getElementsByTagName('polygon_id');						p.polygon_id = parseInt(id[0].firstChild.nodeValue);			var nm = xml.documentElement.getElementsByTagName('name');			p.name = nm[0].firstChild.nodeValue;			var cr = xml.documentElement.getElementsByTagName('circle');			p.circle = cr[0].firstChild.nodeValue;			var dt = xml.documentElement.getElementsByTagName('points_data');			var points_data = dt[0].firstChild.nodeValue;	 		p.points_data = points_data.split(",");			var cc = xml.documentElement.getElementsByTagName('circle_center');			var circle_center = cc[0].firstChild.nodeValue;	 		p.circle_center = circle_center.split(",");			var rd = xml.documentElement.getElementsByTagName('radius');			p.radius = rd[0].firstChild.nodeValue;			var bt = xml.documentElement.getElementsByTagName('border_text');			if (bt[0].firstChild != null){p.border_text = bt[0].firstChild.nodeValue;}else{p.border_text = "";}				var zi = xml.documentElement.getElementsByTagName('zindex');			p.zindex = parseInt(zi[0].firstChild.nodeValue);						p.set_id = this.Map.PolygonSets[s].set_id;			p.style_id = this.Map.PolygonSets[s].style_id;			p.polylinestyle_id = this.Map.PolygonSets[s].polylinestyle_id;			p.plot_on_load = this.Map.PolygonSets[s].plot_on_load;			p.side_panel = this.Map.PolygonSets[s].side_panel;			p.explode = this.Map.PolygonSets[s].explode;			p.array_n = parseInt(n);			//create polygon			this.Map.attachPolygon(n);			// clear the form			$('polygonform_new').reset();			// update the sets menus			this.editPolygons();			this.editPolygonSet(editSetId);			this.removeAssistant();}	
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/2eef737ce2ef3e61972dfb2479a868b6936f6ae7/Edit.js/buggy/templates/Edit.js