From 30acfc20c3306e4d3fc84317b39e787084e400c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Sat, 7 Sep 2013 23:20:22 +0200 Subject: [PATCH] Stricter type def for ol.ImageUrlFunctionType --- src/ol/imageurlfunction.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ol/imageurlfunction.js b/src/ol/imageurlfunction.js index ebddedebdb..95a9a0a99b 100644 --- a/src/ol/imageurlfunction.js +++ b/src/ol/imageurlfunction.js @@ -5,8 +5,8 @@ goog.require('ol.Size'); /** - * @typedef {function(this:ol.source.Source, ol.Extent, ol.Size, ol.Projection): - * (string|undefined)} + * @typedef {function(this:ol.source.ImageSource, ol.Extent, ol.Size, + * ol.Projection): (string|undefined)} */ ol.ImageUrlFunctionType; @@ -22,6 +22,7 @@ ol.ImageUrlFunction.createFromParamsFunction = function(baseUrl, params, paramsFunction) { return ( /** + * @this {ol.source.ImageSource} * @param {ol.Extent} extent Extent. * @param {ol.Size} size Size. * @param {ol.Projection} projection Projection. @@ -34,6 +35,7 @@ ol.ImageUrlFunction.createFromParamsFunction = /** + * @this {ol.source.ImageSource} * @param {ol.Extent} extent Extent. * @param {ol.Size} size Size. * @return {string|undefined} Image URL.