From 04f911085d23b50da873502b6710c5d2ec942678 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Thu, 29 Mar 2007 18:02:43 +0000 Subject: [PATCH] Last patch from #581 , use stopObservingElement, not stopObserving. git-svn-id: http://svn.openlayers.org/trunk/openlayers@2927 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Icon.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/OpenLayers/Icon.js b/lib/OpenLayers/Icon.js index 9fb7c6658c..0329690a84 100644 --- a/lib/OpenLayers/Icon.js +++ b/lib/OpenLayers/Icon.js @@ -52,6 +52,7 @@ OpenLayers.Icon.prototype = { }, destroy: function() { + OpenLayers.Event.stopObservingElement(this.imageDiv.firstChild); this.imageDiv.innerHTML = ""; this.imageDiv = null; },