rem:  for (s=0; s<bLStyData.length; s++){ if (bLStyData[s].style_id == pl.style_id){ var linecolor = "#"+bLStyData[s].color; var lineweight = bLStyData[s].weight; var lineopacity = bLStyData[s].opacity; } } 
add:  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; } } 
context: 	 function updatePolyline(rslt){      var xml = rslt.responseXML;	 		var pl; //the marker data we are changing			if (editArray == "I"){pl = bILData[editObjectN]}else{pl = bSLData[editObjectN]};							 		//shorten var names			var id = xml.documentElement.getElementsByTagName('id');						var polyline_id = id[0].firstChild.nodeValue;			var nm = xml.documentElement.getElementsByTagName('name');			var name = nm[0].firstChild.nodeValue;				 		pl.name = name;						var ty = xml.documentElement.getElementsByTagName('type');			var type = ty[0].firstChild.nodeValue;	 		pl.type = type;						var pt = xml.documentElement.getElementsByTagName('points');			var points_data = pt[0].firstChild.nodeValue;	 		pl.points_data = points_data.split(",");			var bt = xml.documentElement.getElementsByTagName('border');			var border_text = bt[0].firstChild.nodeValue;				 		pl.border_text = border_text;						var z = xml.documentElement.getElementsByTagName('z');			var zindex = parseInt(z[0].firstChild.nodeValue);			pl.zindex = zindex;			//for now when updating a polyline, we dump the old version and make new.			//this will be more efficient if we can find a way to just change the poinst on the fly						for (s=0; s<bLStyData.length; s++){      		if (bLStyData[s].style_id == pl.style_id){        		 var linecolor = "#"+bLStyData[s].color;        		 var lineweight = bLStyData[s].weight;        		 var lineopacity = bLStyData[s].opacity;        	}      }			var pointlist = new Array();    	for (p = 0; p < pl.points_data.length; p+=2 ){    				var point = new GPoint(    						parseFloat(pl.points_data[p]),    						parseFloat(pl.points_data[p+1])    				);    				pointlist.push(point);    		};			map.removeOverlay(pl.polyline);			pl.polyline = new GPolyline(pointlist, linecolor, lineweight, lineopacity);			map.addOverlay(pl.polyline);	}
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/0189aabe60947423f9ec488b239aca4aebb83a51/formsubmit.js/buggy/templates/formsubmit.js