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

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
*/
ol.control.ZoomSlider.prototype.handleMapPostRender_ = function(evtObj) {
var res = evtObj.frameState.view2DState.resolution;
ol.control.ZoomSlider.prototype.handleMapPostRender_ = function(mapEvtObj) {
var res = mapEvtObj.frameState.view2DState.resolution;
if (res !== this.currentResolution_) {
this.currentResolution_ = res;
this.positionThumbForResolution_(res);