OpenLayers OpenLayers

Ticket #581: iconDestroy.patch

File iconDestroy.patch, 394 bytes (added by euzuro, 2 years ago)

destroy icon correctly

  • lib/OpenLayers/Icon.js

    old new  
    5151    }, 
    5252     
    5353    destroy: function() { 
     54        OpenLayers.Event.stopObserving(this.imageDiv.firstChild); 
     55        this.imageDiv.innerHTML = ""; 
    5456        this.imageDiv = null; 
    5557    }, 
    5658