rem: for (var j=0; j<this.Map.Maptypes.length; j++){ if ( ( this.Map.Maptypes[j] != null ) && ( this.Map.Maptypes[j].maptype_id == this.editSetId ) ){ var getElem = "editmaptypetable_" + this.Map.Maptypes[j].maptype_id; 
add: for (var j=0; j<this.Map.maptypes.length; j++){ if ( ( this.Map.maptypes[j] != null ) && ( this.Map.maptypes[j].maptype_id == this.editSetId ) ){ var getElem = "editmaptypetable_" + this.Map.maptypes[j].maptype_id; 
context: 	 BitMap.Edit.prototype.updateRemoveMapType = function(rslt){			var n = this.editObjectN;						// get maptype node value			var p = this.Map.Maptypes[n].maptype_node;						// remove the maptype ref form the map array of types			this.Map.Maptypes[this.Map.Maptypes[n].name] = null;						// remove the controls  		this.Map.map.removeControl(typecontrols);						// remove it from the map						this.Map.map.mapTypes.splice(p, 1);						// add the controls  		this.Map.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			this.Map.map.setMapType(this.Map.map.mapTypes[0]);				 		// remove by id the maptype form    		for (var j=0; j<this.Map.Maptypes.length; j++){      			if ( ( this.Map.Maptypes[j] != null ) && ( this.Map.Maptypes[j].maptype_id == this.editSetId ) ){          		var getElem = "editmaptypetable_" + this.Map.Maptypes[j].maptype_id;          		if ( $(getElem) ) {              	var extraMapTypeForm = $(getElem);          			$('editmaptypeform').removeChild(extraMapTypeForm);          		}							this.Map.Maptypes[n].maptype_id = null;      				this.Map.Maptypes[n] = null;							      			}    		}								 }
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/2eef737ce2ef3e61972dfb2479a868b6936f6ae7/Edit.js/buggy/templates/Edit.js