From 94e291169712b56b18d70a510e91272958ddc74e Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Mon, 4 Aug 2014 14:13:39 +0200 Subject: [PATCH] Fix function type so the function is optional, not the return value --- src/ol/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/map.js b/src/ol/map.js index f4760cef4f..b9d5b4d5ad 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -554,7 +554,7 @@ ol.Map.prototype.disposeInternal = function() { * be `null`. To stop detection, callback functions can return a truthy * value. * @param {S=} opt_this Value to use as `this` when executing `callback`. - * @param {function(this: U, ol.layer.Layer): boolean=} opt_layerFilter Layer + * @param {(function(this: U, ol.layer.Layer): boolean)=} opt_layerFilter Layer * filter function, only layers which are visible and for which this * function returns `true` will be tested for features. By default, all * visible layers will be tested. Feature overlays will always be tested.