Last patch from #581 , use stopObservingElement, not stopObserving.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@2927 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-03-29 18:02:43 +00:00
parent 8d725697ba
commit 04f911085d

View File

@@ -52,6 +52,7 @@ OpenLayers.Icon.prototype = {
},
destroy: function() {
OpenLayers.Event.stopObservingElement(this.imageDiv.firstChild);
this.imageDiv.innerHTML = "";
this.imageDiv = null;
},