OpenLayers OpenLayers

Changeset 3026

Show
Ignore:
Timestamp:
04/05/07 23:30:31 (2 years ago)
Author:
crschmidt
Message:

#633: Fix memory leak in box marker used for boxes layer. Add comprehensive
tests for Box marker.

Files:

Legend:

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

    r2130 r3026  
    3232        this.events = new OpenLayers.Events(this, this.div, null); 
    3333        this.setBorder(borderColor, borderWidth); 
     34    }, 
     35 
     36    /** 
     37     *  
     38     */     
     39    destroy: function() { 
     40 
     41        this.bounds = null; 
     42        this.div = null; 
     43 
     44        OpenLayers.Marker.prototype.destroy.apply(this, arguments); 
    3445    }, 
    3546 
  • trunk/openlayers/tests/list-tests.html

    r2942 r3026  
    2121    <li>test_Icon.html</li> 
    2222    <li>test_Marker.html</li> 
     23    <li>Marker/test_Box.html</li> 
    2324    <li>test_Popup.html</li> 
    2425    <li>test_Feature.html</li>