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 -2
View File
@@ -1,7 +1,8 @@
/**
* @module ol/style/AtlasManager
*/
import {WEBGL_MAX_TEXTURE_SIZE, nullFunction} from '../index.js';
import {WEBGL_MAX_TEXTURE_SIZE} from '../index.js';
import {UNDEFINED} from '../functions.js';
import Atlas from '../style/Atlas.js';
@@ -180,7 +181,7 @@ AtlasManager.prototype.add = function(id, width, height,
// the hit-detection atlas, to make sure that the offset is the same for
// the original image and the hit-detection image.
const renderHitCallback = opt_renderHitCallback !== undefined ?
opt_renderHitCallback : nullFunction;
opt_renderHitCallback : UNDEFINED;
const hitInfo = /** @type {ol.AtlasInfo} */ (this.add_(true,
id, width, height, renderHitCallback, opt_this));