[OpenLayers-Commits] r11126 -
sandbox/elemoine/draw-feature/lib/OpenLayers/Handler
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Wed Feb 16 15:43:01 EST 2011
Author: erilem
Date: 2011-02-16 12:43:01 -0800 (Wed, 16 Feb 2011)
New Revision: 11126
Modified:
sandbox/elemoine/draw-feature/lib/OpenLayers/Handler/Path.js
Log:
path handler - fix bug in mousedown when stopDown may be undefined
Modified: sandbox/elemoine/draw-feature/lib/OpenLayers/Handler/Path.js
===================================================================
--- sandbox/elemoine/draw-feature/lib/OpenLayers/Handler/Path.js 2011-02-16 13:21:14 UTC (rev 11125)
+++ sandbox/elemoine/draw-feature/lib/OpenLayers/Handler/Path.js 2011-02-16 20:43:01 UTC (rev 11126)
@@ -232,12 +232,12 @@
*/
mousedown: function(evt) {
this.mouseDown = true;
+ var stopDown = this.stopDown;
if(this.freehandMode(evt)) {
var stopDown = true;
} else if(!this.lastDown || !this.lastDown.equals(evt.xy)) {
this.lastDown = evt.xy;
this.modifyFeature(evt.xy, !!this.lastUp);
- var stopDown = this.stopDown;
}
this.stoppedDown = stopDown;
return !stopDown;
More information about the Commits
mailing list