From 6791cf6086d3fc9c38b0fcf4a31ffbc80ab23aef Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Wed, 2 Jan 2008 19:06:07 +0000 Subject: [PATCH] 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 --- lib/OpenLayers/Handler/Point.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/OpenLayers/Handler/Point.js b/lib/OpenLayers/Handler/Point.js index 56e7f04da8..bfc0a8a300 100644 --- a/lib/OpenLayers/Handler/Point.js +++ b/lib/OpenLayers/Handler/Point.js @@ -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(); }, /**