Remove temporary hacks from Marker.js.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@199 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user