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:
@@ -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;
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user