rem: var pointlist = new Array(); for (p = 0; p < bILData[n].points_data.length; p+=2 ){ var point = new GPoint( parseFloat(bILData[n].points_data[p]), parseFloat(bILData[n].points_data[p+1]) ); pointlist.push(point); };  map.removeOverlay(bILData[n].polyline); bILData[n].polyline = new GPolyline(pointlist, linecolor, lineweight, lineopacity); map.addOverlay(bILData[n].polyline); 
context: 	 function updatePolyline(rslt){	 		var s;      var xml = rslt.responseXML;									var n = editObjectN;						//@todo modify this to handle either bILData or bSLData sets	 		//shorten var names			var id = xml.documentElement.getElementsByTagName('polyline_id');						bILData[n].polyline_id = id[0].firstChild.nodeValue;			var nm = xml.documentElement.getElementsByTagName('name');			bILData[n].name = nm[0].firstChild.nodeValue;									var tp = xml.documentElement.getElementsByTagName('type');			bILData[n].type = parseInt(tp[0].firstChild.nodeValue);						var dt = xml.documentElement.getElementsByTagName('points_data');			var points_data = dt[0].firstChild.nodeValue;	 		bILData[n].points_data = points_data.split(",");						var bt = xml.documentElement.getElementsByTagName('border_text');			bILData[n].border_text = bt[0].firstChild.nodeValue;						var zi = xml.documentElement.getElementsByTagName('zindex');			bILData[n].zindex = parseInt(zi[0].firstChild.nodeValue);						//for now when updating a polyline, we dump the old version and make new.			//@todo this is redundant to the polyline making loop in js_makegmap.tpl - consolidate			for (q=0; q<bLStyData.length; q++){				if (bLStyData[q].style_id == bILData[n].style_id){					var linecolor = "#"+bLStyData[q].color;					var lineweight = bLStyData[q].weight;					var lineopacity = bLStyData[q].opacity;				}			}			var pointlist = new Array();			for (p = 0; p < bILData[n].points_data.length; p+=2 ){				var point = new GPoint(					parseFloat(bILData[n].points_data[p]),					parseFloat(bILData[n].points_data[p+1])				);				pointlist.push(point);			};						map.removeOverlay(bILData[n].polyline);			bILData[n].polyline = new GPolyline(pointlist, linecolor, lineweight, lineopacity);			map.addOverlay(bILData[n].polyline);			removeAssistant();	}
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/7a10fad618cf5064069d13a7a277c1947e8b0484/formsubmit.js/buggy/templates/formsubmit.js