rem: var n = editObjectN; 
add: var n = BitMap.Edit.editObjectN; 
context: 	 BitMap.Edit.updateRemoveMapType = function(rslt){	    //@todo change this - bad harding coded ref to the map data - not nice      var Map = BitMap.MapData[0].Map;      			var n = editObjectN;						// get maptype node value			var p = Map.Maptypes[n].maptype_node;						// remove the maptype ref form the map array of types			Map.Maptypes[Map.Maptypes[n].name] = null;						// remove the controls  		map.removeControl(typecontrols);						// remove it from the map						map.mapTypes.splice(p, 1);						// add the controls  		map.addControl(typecontrols);						// @todo we should first check if the map is on display, and then if so flip to street			// we flip to street mode			map.setMapType(map.mapTypes[0]);				 		// remove by id the maptype form    		for (var j=0; j<Map.Maptypes.length; j++){      			if ( ( Map.Maptypes[j] != null ) && ( Map.Maptypes[j].maptype_id == editSetId ) ){          		var getElem = "editmaptypetable_" + Map.Maptypes[j].maptype_id;          		if ( $(getElem) ) {              	var extraMapTypeForm = $(getElem);          			$('editmaptypeform').removeChild(extraMapTypeForm);          		}														Map.Maptypes[n].maptype_id = null;      				Map.Maptypes[n] = null;							      			}    		}								 }
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/cc6f22930d4e12134b6173f5ac3df158f26afdfa/Edit.js/buggy/templates/Edit.js