From 5d797ca9f9e99674026edc9122a04c7255e50dc0 Mon Sep 17 00:00:00 2001 From: euzuro Date: Fri, 26 May 2006 23:20:39 +0000 Subject: [PATCH] remove data from marker git-svn-id: http://svn.openlayers.org/trunk/openlayers@411 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Marker.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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); - } }, /**