rem: if (Map.PolylineSets[a] != null && Map.PolylineSets[a].set_id == editSetId){ 
add: if (Map.PolylineSets[a] != null && Map.PolylineSets[a].set_id == BitMap.Edit.editSetId){ 
context: BitMap.Edit.addPolyline = 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;			//this is such a crappy way to get this number			for(var a=0; a<Map.PolylineSets.length; a++){				if (Map.PolylineSets[a] != null && Map.PolylineSets[a].set_id == editSetId){					s = a;				}			};  		var n = Map.Polylines.length;  		Map.Polylines[n] = new Array();			var p = Map.Polylines[n];  		p.array_n = n;				 		//shorten var names			var id = xml.documentElement.getElementsByTagName('polyline_id');						p.polyline_id = id[0].firstChild.nodeValue;			var nm = xml.documentElement.getElementsByTagName('name');			p.name = nm[0].firstChild.nodeValue;			var dt = xml.documentElement.getElementsByTagName('points_data');			var points_data = dt[0].firstChild.nodeValue;	 		p.points_data = points_data.split(",");						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 = Map.PolylineSets[s].set_id;			p.style_id = Map.PolylineSets[s].style_id;			p.plot_on_load = Map.PolylineSets[s].plot_on_load;			p.side_panel = Map.PolylineSets[s].side_panel;			p.explode = Map.PolylineSets[s].explode;			p.array_n = parseInt(n);			//create polyline			Map.attachPolyline(n);			// clear the form			$('polylineform_new').reset();			// update the sets menus			BitMap.Edit.editPolylines();			BitMap.Edit.editPolylineSet(editSetId);			BitMap.Edit.removeAssistant();}	
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/cc6f22930d4e12134b6173f5ac3df158f26afdfa/Edit.js/buggy/templates/Edit.js