From 35b31730b575c3771b15a61fa2b9e39f857cb90e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 13 Mar 2014 08:20:54 +0100 Subject: [PATCH] Change a property from private to protected --- src/ol/interaction/pointerinteraction.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ol/interaction/pointerinteraction.js b/src/ol/interaction/pointerinteraction.js index e0927ec8da..a8f0772e8b 100644 --- a/src/ol/interaction/pointerinteraction.js +++ b/src/ol/interaction/pointerinteraction.js @@ -23,9 +23,9 @@ ol.interaction.Pointer = function() { /** * @type {boolean} - * @private + * @protected */ - this.handlingDownUpSequence_ = false; + this.handlingDownUpSequence = false; /** * @type {Object.} @@ -139,25 +139,25 @@ ol.interaction.Pointer.prototype.handleMapBrowserEvent = var stopEvent = false; var view = mapBrowserEvent.map.getView(); this.updateTrackedPointers_(mapBrowserPointerEvent); - if (this.handlingDownUpSequence_) { + if (this.handlingDownUpSequence) { if (mapBrowserPointerEvent.type == ol.MapBrowserEvent.EventType.POINTERDRAG) { this.handlePointerDrag(mapBrowserEvent); } else if (mapBrowserPointerEvent.type == ol.MapBrowserEvent.EventType.POINTERUP) { - this.handlingDownUpSequence_ = + this.handlingDownUpSequence = this.handlePointerUp(mapBrowserPointerEvent); - if (!this.handlingDownUpSequence_) { + if (!this.handlingDownUpSequence) { view.setHint(ol.ViewHint.INTERACTING, -1); } } } if (mapBrowserPointerEvent.type == ol.MapBrowserEvent.EventType.POINTERDOWN) { var handled = this.handlePointerDown(mapBrowserPointerEvent); - if (!this.handlingDownUpSequence_ && handled) { + if (!this.handlingDownUpSequence && handled) { view.setHint(ol.ViewHint.INTERACTING, 1); } - this.handlingDownUpSequence_ = handled; + this.handlingDownUpSequence = handled; stopEvent = this.shouldStopEvent(handled); } return !stopEvent;