Merge pull request #8172 from fredj/ignore_this

Ignore 'this' type in function typedef
This commit is contained in:
Frédéric Junod
2018-05-09 15:15:28 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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
*/

View File

@@ -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
*/