More specific argument type of callback method.

This commit is contained in:
Marc Jansen
2013-03-12 16:21:59 +01:00
parent bc07722816
commit 220c7bd6f8
+3 -3
View File
@@ -224,11 +224,11 @@ ol.control.ZoomSlider.prototype.initSlider_ = function() {
/** /**
* @param {{frameState:ol.FrameState}} evtObj The evtObj. * @param {ol.MapEvent} mapEvtObj The ol.MapEvent object.
* @private * @private
*/ */
ol.control.ZoomSlider.prototype.handleMapPostRender_ = function(evtObj) { ol.control.ZoomSlider.prototype.handleMapPostRender_ = function(mapEvtObj) {
var res = evtObj.frameState.view2DState.resolution; var res = mapEvtObj.frameState.view2DState.resolution;
if (res !== this.currentResolution_) { if (res !== this.currentResolution_) {
this.currentResolution_ = res; this.currentResolution_ = res;
this.positionThumbForResolution_(res); this.positionThumbForResolution_(res);