better type checking

This commit is contained in:
Éric Lemoine
2012-07-09 20:51:28 +02:00
parent 127a2c9606
commit aebfb643ac
2 changed files with 5 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ ol.control.Navigation.prototype.deactivate = function() {
};
/**
* @param {Object} evt
* @param {{deltaX, deltaY}} evt
*/
ol.control.Navigation.prototype.moveMap = function(evt) {
this.map_.moveByViewportPx(evt.deltaX, evt.deltaY);
@@ -63,7 +63,7 @@ ol.control.Navigation.prototype.moveMap = function(evt) {
};
/**
* @param {Event} evt
* @param {goog.events.MouseWheelEvent} evt
*/
ol.control.Navigation.prototype.zoomMap = function(evt) {
var me = this;