rem: this.bAssistant = GEvent.addListener(this.Map.map, "click", function(overlay,point) { if(this.bLastpoint && this.bLastpoint.x==point.x && this.bLastpoint.y==point.y) return; this.bLastpoint = point;  this.bTempPoints.push(point); this.Map.map.removeOverlay(bTP); this.bTP = new GPolyline(this.bTempPoints); this.Map.map.addOverlay(bTP);  for(var i=0; i<this.bTempPoints.length; i++){ if (i == 0){ msg = this.bTempPoints[i].x + ', ' + this.bTempPoints[i].y; }else{ msg += ', ' + this.bTempPoints[i].x + ', ' + this.bTempPoints[i].y; } }  this.bModPData.value = msg; }); 
add: this.bAssistant = GEvent.addListener(this.Map.map, "click", function(overlay, point){ if (point) { if (this.TempOverlay != null) { this.removeOverlay(this.TempOverlay); } this.TempOverlay = new GMarker(point); this.addOverlay(this.TempOverlay); this.panTo(point); f['geo[lng]'].value = point.lng(); f['geo[lat]'].value = point.lat(); } }); 
context: 	  	this.bAssistant = GEvent.addListener(this.Map.map, "click", function(overlay,point) {	                		if(this.bLastpoint && this.bLastpoint.x==point.x && this.bLastpoint.y==point.y) return;	                		this.bLastpoint = point;	                			                		this.bTempPoints.push(point);	                		this.Map.map.removeOverlay(bTP);	                		this.bTP = new GPolyline(this.bTempPoints);	                		this.Map.map.addOverlay(bTP);		                		for(var i=0; i<this.bTempPoints.length; i++){												if (i == 0){													msg = this.bTempPoints[i].x + ', ' + this.bTempPoints[i].y;													}else{	                				msg += ', ' + this.bTempPoints[i].x + ', ' + this.bTempPoints[i].y;												}	                		}												                		this.bModPData.value = msg;	              	});
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1713/75e730cccb0d880fda545e3a30c9583ee38f7898/Edit.js/buggy/templates/Edit.js