From 6e2fd1bbf915f5c241d9cc0c8d64fbe5c70e2524 Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 20 Sep 2006 11:24:54 +0000 Subject: [PATCH] decompose the marker destruction code out so that it can be overridden in subclasses git-svn-id: http://svn.openlayers.org/trunk/openlayers@1497 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Feature.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Feature.js b/lib/OpenLayers/Feature.js index 8c65df6ca1..d701664745 100644 --- a/lib/OpenLayers/Feature.js +++ b/lib/OpenLayers/Feature.js @@ -63,7 +63,7 @@ OpenLayers.Feature.prototype= { this.lonlat = null; this.data = null; if (this.marker != null) { - this.marker.destroy(); + this.destroyMarker(this.marker); this.marker = null; } if (this.popup != null) { @@ -89,6 +89,10 @@ OpenLayers.Feature.prototype= { return this.marker; }, + destroyMarker: function() { + this.marker.destroy(); + }, + /** * */