rem: a.onclick = "BitMap.EditSession.editPolylineStyle("+n+")"; 
add: var i = n; var ref = this; a.onclick = function(){ref.editPolylineStyle(i);}; 
context: 	"editPolylineStyles": function(){		BitMap.show('edit-polylinestyles-table');		BitMap.show('edit-polylinestyles-cancel');				var polylinestyleTable = $('edit-polylinestyle-table');		//set some constants		var linksList = polylinestyleTable.getElementsByTagName("ul").item(0);		var links = polylinestyleTable.getElementsByTagName("li");		//Clear all the existing polylinestyles listed		//We leave the first two, the first is the model we clone, the second is for a new polylinestyle		var count = links.length;		for (n=count-1; n>1; n--){			linksList.removeChild(links.item(n));		}				/* I THINK THIS CAN BE DELETED -wjames5 */		//$('edit-polylinestylelink-new-a').onclick = "BitMap.EditSession.editPolylineStyle();";				//For each polylinestyle, add a link		var firstselected = false;		for (var n=0; n<this.Map.polylinestyles.length; n++) {			var m = this.Map.polylinestyles[n];			var li = links.item(0).cloneNode(true);			li.id = 'edit-polylinestylelink-'+n;			var a = li.getElementsByTagName("a").item(0);			a.onclick = "BitMap.EditSession.editPolylineStyle("+n+")";			a.innerHTML = m.name;			linksList.appendChild(li);			li.style.display = "block";						if (firstselected != true){				this.editPolylineStyle(n);				firstselected = true;			}					}		if (firstselected == false){			this.editPolylineStyle();		}		//We assume it is not visible and make it so		BitMap.show('edit-polylinestyle-table');	},
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1713/78c46c0ddae20b9410f61f36f11e233fe55fa24b/Edit.js/clean/templates/Edit.js