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:
@@ -152,12 +152,12 @@ OpenLayers.Handler.Point = OpenLayers.Class(OpenLayers.Handler, {
|
|||||||
*/
|
*/
|
||||||
finalize: function() {
|
finalize: function() {
|
||||||
this.layer.renderer.clear();
|
this.layer.renderer.clear();
|
||||||
this.callback("done", [this.geometryClone()]);
|
|
||||||
this.destroyFeature();
|
|
||||||
this.drawing = false;
|
this.drawing = false;
|
||||||
this.mouseDown = false;
|
this.mouseDown = false;
|
||||||
this.lastDown = null;
|
this.lastDown = null;
|
||||||
this.lastUp = null;
|
this.lastUp = null;
|
||||||
|
this.callback("done", [this.geometryClone()]);
|
||||||
|
this.destroyFeature();
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -166,12 +166,12 @@ OpenLayers.Handler.Point = OpenLayers.Class(OpenLayers.Handler, {
|
|||||||
*/
|
*/
|
||||||
cancel: function() {
|
cancel: function() {
|
||||||
this.layer.renderer.clear();
|
this.layer.renderer.clear();
|
||||||
this.callback("cancel", [this.geometryClone()]);
|
|
||||||
this.destroyFeature();
|
|
||||||
this.drawing = false;
|
this.drawing = false;
|
||||||
this.mouseDown = false;
|
this.mouseDown = false;
|
||||||
this.lastDown = null;
|
this.lastDown = null;
|
||||||
this.lastUp = null;
|
this.lastUp = null;
|
||||||
|
this.callback("cancel", [this.geometryClone()]);
|
||||||
|
this.destroyFeature();
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user