rem: var newMarkerli = markerLinks.item(0).cloneNode(true); var newMarkerLink = newMarkerli.getElementsByTagName("a").item(0); 
add: var newMarkerli = markerLinks.item(0).cloneNode(true); newMarkerli.id = 'edit-markerlink-'+n; var newMarkerLink = newMarkerli.getElementsByTagName("a").item(0); 
context: BitMap.Edit.prototype.editMarkers = function(i){  this.cancelEditMarkerSetOptions();  var set_id = this.Map.markersets[i].set_id;  var markerTable = $('edit-markers-table');  //Set the markerset toggle tags to closed  //Set the markerset toggle tags to open on our selected set  //Move Marker Table to New Set  $('edit-markerset-'+i).appendChild(markerTable);  //set some constants  var markerLinksList = markerTable.getElementsByTagName("ul").item(0);  var markerLinks = markerTable.getElementsByTagName("li");  //Clear all the existing markers listed    //We leave the first, cause it is the model we clone  var count = markerLinks.length;  for (n=count-1; n>0; n--){    markerLinksList.removeChild(markerLinks.item(n));  }  var newCount = markerTable.getElementsByTagName("li");  //For each marker in our new set, add a link  var firstselected = false;  for (var n=0; n<this.Map.markers.length; n++) {    var m = this.Map.markers[n];    if (m.set_id == set_id){  			var newMarkerli = markerLinks.item(0).cloneNode(true);  			var newMarkerLink = newMarkerli.getElementsByTagName("a").item(0);        newMarkerLink.href = "javascript:BitMap.EditSession.editMarker("+n+")";        newMarkerLink.innerHTML = m.title;        markerLinksList.appendChild(newMarkerli);  			newMarkerli.style.display = "block";  			  			if (firstselected != true){  			  this.editMarker(n);  			  firstselected = true;  			}          	}  }  //We assume it is not visible and make it so  BitMap.show('edit-markers-table')}
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/683d8d435a2892e4da48daeff2529f9c7616b35f/Edit.js/buggy/templates/Edit.js