Point, path, and poly handlers now clean up before calling callbacks. r=crschmidt (closes #1239)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@5624 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2008-01-02 19:06:07 +00:00
parent d643492888
commit 6791cf6086

View File

@@ -152,12 +152,12 @@ OpenLayers.Handler.Point = OpenLayers.Class(OpenLayers.Handler, {
*/
finalize: function() {
this.layer.renderer.clear();
this.callback("done", [this.geometryClone()]);
this.destroyFeature();
this.drawing = false;
this.mouseDown = false;
this.lastDown = null;
this.lastUp = null;
this.callback("done", [this.geometryClone()]);
this.destroyFeature();
},
/**
@@ -166,12 +166,12 @@ OpenLayers.Handler.Point = OpenLayers.Class(OpenLayers.Handler, {
*/
cancel: function() {
this.layer.renderer.clear();
this.callback("cancel", [this.geometryClone()]);
this.destroyFeature();
this.drawing = false;
this.mouseDown = false;
this.lastDown = null;
this.lastUp = null;
this.callback("cancel", [this.geometryClone()]);
this.destroyFeature();
},
/**