remove data from marker

git-svn-id: http://svn.openlayers.org/trunk/openlayers@411 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-26 23:20:39 +00:00
parent 99401464ff
commit 5d797ca9f9

View File

@@ -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);
}
},
/**