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

View File

@@ -1,7 +1,7 @@
/**
* @module ol/render/Feature
*/
import {nullFunction} from '../index.js';
import {UNDEFINED} from '../functions.js';
import {extend} from '../array.js';
import {createOrUpdateFromCoordinate, createOrUpdateFromFlatCoordinates, getCenter, getHeight} from '../extent.js';
import GeometryType from '../geom/GeometryType.js';
@@ -244,7 +244,7 @@ RenderFeature.prototype.getStride = function() {
/**
* @return {undefined}
*/
RenderFeature.prototype.getStyleFunction = nullFunction;
RenderFeature.prototype.getStyleFunction = UNDEFINED;
/**