OpenLayers OpenLayers

Changeset 2926

Show
Ignore:
Timestamp:
03/29/07 13:21:27 (2 years ago)
Author:
crschmidt
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Icon.js

    r2925 r2926  
    5353     
    5454    destroy: function() { 
    55         OpenLayers.Event.stopObserving(this.imageDiv.firstChild); 
    5655        this.imageDiv.innerHTML = ""; 
    5756        this.imageDiv = null;