diff --git a/lib/OpenLayers/Marker.js b/lib/OpenLayers/Marker.js index 87be0f4000..567d19df80 100644 --- a/lib/OpenLayers/Marker.js +++ b/lib/OpenLayers/Marker.js @@ -17,9 +17,6 @@ OpenLayers.Marker.prototype = { /** @type OpenLayers.Map */ map: null, - /** @type Object */ - data: null, - /** @type DOMElement */ image: null, @@ -29,10 +26,9 @@ OpenLayers.Marker.prototype = { * @param {OpenLayers.Icon} icon * @param {OpenLayers.LonLat lonlat */ - initialize: function(lonlat, icon, data) { + initialize: function(lonlat, icon) { this.icon = icon; this.lonlat = lonlat; - this.data = data; this.image = OpenLayers.Util.createAlphaImageDiv(null, null, @@ -41,11 +37,6 @@ OpenLayers.Marker.prototype = { "absolute" ); this.events = new OpenLayers.Events(this, this.image, null); - - //load marker events from data - if (this.data != null && this.data.loadEvents != null) { - this.data.loadEvents(this); - } }, /**