diff --git a/lib/OpenLayers/Marker.js b/lib/OpenLayers/Marker.js index 2138b60bd0..ec40b12ccd 100644 --- a/lib/OpenLayers/Marker.js +++ b/lib/OpenLayers/Marker.js @@ -34,7 +34,6 @@ OpenLayers.Marker.prototype = { this.icon.size ); this.events = new OpenLayers.Events(this, this.object, null); - this.events.register("click", this, this.onclick ); }, /** @@ -50,14 +49,9 @@ OpenLayers.Marker.prototype = { this.object.style.top = (pixel.y+this.icon.offset.y) + "px" this.object.style.left = (pixel.x+this.icon.offset.x) + "px"; this.object.style.position = "absolute"; - this.object.onclick = this.onclick; return this.object; }, - onclick: function(evt) { - alert('onclick'); - }, - /** @final @type String */ CLASS_NAME: "OpenLayers.Marker" }