From 854c95f37ae129420ab58586d917eb62654c5fce Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Wed, 9 May 2018 13:49:59 +0200 Subject: [PATCH] Ignore 'this' type in function typedef --- src/ol/events/condition.js | 2 +- src/ol/interaction/DragBox.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/events/condition.js b/src/ol/events/condition.js index ecfa991981..c8a1d1c66d 100644 --- a/src/ol/events/condition.js +++ b/src/ol/events/condition.js @@ -11,7 +11,7 @@ import {WEBKIT, MAC} from '../has.js'; * A function that takes an {@link module:ol/MapBrowserEvent} and returns a * `{boolean}`. If the condition is met, true should be returned. * - * @typedef {function(module:ol/MapBrowserEvent): boolean} Condition + * @typedef {function(this: ?, module:ol/MapBrowserEvent): boolean} Condition */ diff --git a/src/ol/interaction/DragBox.js b/src/ol/interaction/DragBox.js index 341f9b364e..75916deeb5 100644 --- a/src/ol/interaction/DragBox.js +++ b/src/ol/interaction/DragBox.js @@ -14,7 +14,7 @@ import RenderBox from '../render/Box.js'; * A function that takes a {@link module:ol/MapBrowserEvent} and two * {@link module:ol~Pixel}s and returns a `{boolean}`. If the condition is met, * true should be returned. - * @typedef {function(module:ol/MapBrowserEvent, module:ol~Pixel, module:ol~Pixel):boolean} EndCondition + * @typedef {function(this: ?, module:ol/MapBrowserEvent, module:ol~Pixel, module:ol~Pixel):boolean} EndCondition */