Take into account the comments of bartvde

This commit is contained in:
Xavier Mamano
2013-04-25 16:25:56 +02:00
parent ee8e892bb4
commit 5ecc54a689

View File

@@ -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 <touch> will be
* "touchstart" method. When touch events are started <touch> 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;
}
},