Move the nullFunction to ol/functions

And rename it to `UNDEFINED`.
This commit is contained in:
Frederic Junod
2018-03-01 10:52:23 +01:00
parent a30d9a41b8
commit b50a47114e
21 changed files with 72 additions and 63 deletions
+3 -3
View File
@@ -1,13 +1,13 @@
/**
* @module ol/renderer/Layer
*/
import {getUid, inherits, nullFunction} from '../index.js';
import {getUid, inherits} from '../index.js';
import ImageState from '../ImageState.js';
import Observable from '../Observable.js';
import TileState from '../TileState.js';
import {listen} from '../events.js';
import EventType from '../events/EventType.js';
import {FALSE} from '../functions.js';
import {FALSE, UNDEFINED} from '../functions.js';
import SourceState from '../source/State.js';
/**
@@ -42,7 +42,7 @@ inherits(LayerRenderer, Observable);
* @return {T|undefined} Callback result.
* @template S,T
*/
LayerRenderer.prototype.forEachFeatureAtCoordinate = nullFunction;
LayerRenderer.prototype.forEachFeatureAtCoordinate = UNDEFINED;
/**