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

tests for Box marker.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3026 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-04-06 03:30:31 +00:00
parent cf94dbeb01
commit 87bad5b9f8
3 changed files with 374 additions and 0 deletions

View File

@@ -33,6 +33,17 @@ OpenLayers.Marker.Box.prototype =
this.setBorder(borderColor, borderWidth);
},
/**
*
*/
destroy: function() {
this.bounds = null;
this.div = null;
OpenLayers.Marker.prototype.destroy.apply(this, arguments);
},
/** Allow the user to change the box's color and border width
*
* @param {String} color Default is "red"