rem: for (var n=0; n<this.Map.Polygons.length; n++){ if ( this.Map.Polygons[n] != null && this.Map.Polygons[n].polygon != null && this.Map.Polygons[n].set_id == this.editSetId ){ this.Map.map.removeOverlay(this.Map.Polygons[n].polygon); this.Map.Polygons[n].polygon = null; this.Map.Polygons[n] = null; 
add: for (var n=0; n<this.Map.polygons.length; n++){ if ( this.Map.polygons[n] != null && this.Map.polygons[n].polygon != null && this.Map.polygons[n].set_id == this.editSetId ){ this.Map.map.removeOverlay(this.Map.polygons[n].polygon); this.Map.polygons[n].polygon = null; this.Map.polygons[n] = null; 
context: BitMap.Edit.prototype.updateRemovePolygonSet = function(){	for (var n=0; n<this.Map.Polygons.length; n++){		if ( this.Map.Polygons[n] != null && this.Map.Polygons[n].polygon != null && this.Map.Polygons[n].set_id == this.editSetId ){			this.Map.map.removeOverlay(this.Map.Polygons[n].polygon);			this.Map.Polygons[n].polygon = null;			this.Map.Polygons[n] = null;		}	}	for (var s=0; s<Map.PolygonSets.length; s++){		if ( ( this.Map.PolygonSets[s] != null ) && ( this.Map.PolygonSets[s].set_id == this.editSetId ) ){			var getElem = "polygonset_"+this.Map.PolygonSets[s].set_id;			if ( $(getElem) ) {				var extraPolygonForm = $(getElem);				$('editpolygonform').removeChild(extraPolygonForm);			}			this.Map.PolygonSets[s].set_id = null;			this.Map.PolygonSets[s] = null;  	}	}}
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/2eef737ce2ef3e61972dfb2479a868b6936f6ae7/Edit.js/buggy/templates/Edit.js