diff --git a/lib/OpenLayers/Control/LayerSwitcher.js b/lib/OpenLayers/Control/LayerSwitcher.js index c46572a9c4..799fbd609b 100644 --- a/lib/OpenLayers/Control/LayerSwitcher.js +++ b/lib/OpenLayers/Control/LayerSwitcher.js @@ -535,13 +535,13 @@ OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, { * evt - {Event} */ mouseDown: function(evt) { - this.mouseDown = true; + this.isMouseDown = true; this.ignoreEvent(evt); }, /** * Method: mouseUp - * If the 'mouseDown' flag has been set, that means that the drag was + * If the 'isMouseDown' flag has been set, that means that the drag was * started from within the LayerSwitcher control, and thus we can * ignore the mouseup. Otherwise, let the Event continue. * @@ -549,8 +549,8 @@ OpenLayers.Control.LayerSwitcher = OpenLayers.Class(OpenLayers.Control, { * evt - {Event} */ mouseUp: function(evt) { - if (this.mouseDown) { - this.mouseDown = false; + if (this.isMouseDown) { + this.isMouseDown = false; this.ignoreEvent(evt); } },