From 8d725697ba77701439054224b3c3277cd82a0d27 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Thu, 29 Mar 2007 17:21:27 +0000 Subject: [PATCH] Erik and I discussed this, and the destroy() here actually does the wrong thing. the innerHTML still prevents the memory leak, but unregistering in this way doesn't do the right thing. remove it. git-svn-id: http://svn.openlayers.org/trunk/openlayers@2926 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Icon.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/OpenLayers/Icon.js b/lib/OpenLayers/Icon.js index 07f0e2323d..9fb7c6658c 100644 --- a/lib/OpenLayers/Icon.js +++ b/lib/OpenLayers/Icon.js @@ -52,7 +52,6 @@ OpenLayers.Icon.prototype = { }, destroy: function() { - OpenLayers.Event.stopObserving(this.imageDiv.firstChild); this.imageDiv.innerHTML = ""; this.imageDiv = null; },