diff --git a/src/ol/control/Navigation.js b/src/ol/control/Navigation.js index dc391b4210..e87eb7300c 100644 --- a/src/ol/control/Navigation.js +++ b/src/ol/control/Navigation.js @@ -42,7 +42,7 @@ ol.control.Navigation.prototype.deactivate = function() { }; /** - * @param {ol.event.DragEvent} evt + * @param {Object} evt */ ol.control.Navigation.prototype.moveMap = function(evt) { this.getMap().moveByPx(evt.dx, evt.dy); diff --git a/src/ol/control/Zoom.js b/src/ol/control/Zoom.js index 86192ef12d..214a255721 100644 --- a/src/ol/control/Zoom.js +++ b/src/ol/control/Zoom.js @@ -76,7 +76,7 @@ ol.control.Zoom.prototype.deactivate = function() { * @param {Event} evt */ ol.control.Zoom.prototype.handle = function(evt) { - var target = /** @type {Node} */ evt.target, + var target = /** @type {Node} */ (evt.target), handled = false; if (goog.dom.getAncestorByClass(target, ol.control.Zoom.RES.IN_CLS)) { this.getMap().zoomIn();