From b73c7bbaed8afd27c9fa1995682c577b988ade0f Mon Sep 17 00:00:00 2001 From: euzuro Date: Mon, 5 Jun 2006 18:14:30 +0000 Subject: [PATCH] give Icon a destroy(). this fixes issue introduced in r520 git-svn-id: http://svn.openlayers.org/trunk/openlayers@523 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Icon.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/OpenLayers/Icon.js b/lib/OpenLayers/Icon.js index 91517920a5..bfc2b581fb 100644 --- a/lib/OpenLayers/Icon.js +++ b/lib/OpenLayers/Icon.js @@ -40,6 +40,10 @@ OpenLayers.Icon.prototype = { this.imageDiv = OpenLayers.Util.createAlphaImageDiv(); }, + + destroy: function() { + this.imageDiv = null; + }, /** * @returns A fresh copy of the icon.