diff --git a/lib/OpenLayers/Handler.js b/lib/OpenLayers/Handler.js index 4a7aa20d36..0d43187e10 100644 --- a/lib/OpenLayers/Handler.js +++ b/lib/OpenLayers/Handler.js @@ -88,8 +88,8 @@ OpenLayers.Handler = OpenLayers.Class({ /** * Property: touch - * {Boolean} Indcates the support of touch events. When touch events are - * starded touch will be true and all mouse related listeners will do + * {Boolean} Indicates the support of touch events. When touch events are + * started touch will be true and all mouse related listeners will do * nothing. */ touch: false, @@ -202,16 +202,11 @@ OpenLayers.Handler = OpenLayers.Class({ /** * Method: startTouch * Start touch events, this method must be called by subclasses in - * "touchstart" method. When touch events are starded will be + * "touchstart" method. When touch events are started will be * true and all mouse related listeners will do nothing. - * - * Returns: - * {Boolean} The touch events are started. */ startTouch: function() { - if (this.touch) { - return false; - } else { + if (!this.touch) { this.touch = true; var events = [ "mousedown", "mouseup", "mousemove", "click", "dblclick", @@ -222,7 +217,6 @@ OpenLayers.Handler = OpenLayers.Class({ this.unregister(events[i], this[events[i]]); } } - return true; } },