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
This commit is contained in:
euzuro
2006-06-05 18:14:30 +00:00
parent 95d2d2275a
commit b73c7bbaed

View File

@@ -40,6 +40,10 @@ OpenLayers.Icon.prototype = {
this.imageDiv = OpenLayers.Util.createAlphaImageDiv();
},
destroy: function() {
this.imageDiv = null;
},
/**
* @returns A fresh copy of the icon.