Remove not needed type cast

This commit is contained in:
tsauerwein
2014-03-13 10:23:06 +01:00
parent 6933023441
commit 873d47d087

View File

@@ -132,23 +132,20 @@ ol.interaction.Pointer.prototype.handleMapBrowserEvent =
return true; return true;
} }
var mapBrowserPointerEvent =
/** @type {ol.MapBrowserPointerEvent} */ (mapBrowserEvent);
var stopEvent = false; var stopEvent = false;
this.updateTrackedPointers_(mapBrowserPointerEvent); this.updateTrackedPointers_(mapBrowserEvent);
if (this.handlingDownUpSequence) { if (this.handlingDownUpSequence) {
if (mapBrowserPointerEvent.type == if (mapBrowserEvent.type ==
ol.MapBrowserEvent.EventType.POINTERDRAG) { ol.MapBrowserEvent.EventType.POINTERDRAG) {
this.handlePointerDrag(mapBrowserEvent); this.handlePointerDrag(mapBrowserEvent);
} else if (mapBrowserPointerEvent.type == } else if (mapBrowserEvent.type ==
ol.MapBrowserEvent.EventType.POINTERUP) { ol.MapBrowserEvent.EventType.POINTERUP) {
this.handlingDownUpSequence = this.handlingDownUpSequence =
this.handlePointerUp(mapBrowserPointerEvent); this.handlePointerUp(mapBrowserEvent);
} }
} }
if (mapBrowserPointerEvent.type == ol.MapBrowserEvent.EventType.POINTERDOWN) { if (mapBrowserEvent.type == ol.MapBrowserEvent.EventType.POINTERDOWN) {
var handled = this.handlePointerDown(mapBrowserPointerEvent); var handled = this.handlePointerDown(mapBrowserEvent);
this.handlingDownUpSequence = handled; this.handlingDownUpSequence = handled;
stopEvent = this.shouldStopEvent(handled); stopEvent = this.shouldStopEvent(handled);
} }