Getting rid of compiler warnings.

This commit is contained in:
ahocevar
2012-06-22 17:17:25 +02:00
parent f12a20d7aa
commit 6c1d510bf0
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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();