Properly destroy features in the polygon handler. Many thanks to fredj who has caubht these issues, provided clear patches, and written solid tests. More please. (Closes #934)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@4076 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2007-08-28 16:34:53 +00:00
parent 2762e3ea47
commit 153b7a2a78
2 changed files with 3 additions and 1 deletions

View File

@@ -64,8 +64,9 @@ OpenLayers.Handler.Polygon = OpenLayers.Class(OpenLayers.Handler.Path, {
* Destroy temporary geometries
*/
destroyFeature: function() {
OpenLayers.Handler.Path.prototype.destroyFeature.apply(this);
this.polygon.destroy();
this.point.destroy();
this.polygon = null;
},
/**