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,8 +1,8 @@
/**
* @module ol/interaction/Pointer
*/
import {inherits, nullFunction} from '../index.js';
import {FALSE} from '../functions.js';
import {inherits} from '../index.js';
import {FALSE, UNDEFINED} from '../functions.js';
import MapBrowserEventType from '../MapBrowserEventType.js';
import MapBrowserPointerEvent from '../MapBrowserPointerEvent.js';
import Interaction from '../interaction/Interaction.js';
@@ -13,7 +13,7 @@ import {getValues} from '../obj.js';
* @param {ol.MapBrowserPointerEvent} mapBrowserEvent Event.
* @this {ol.interaction.Pointer}
*/
const handleDragEvent = nullFunction;
const handleDragEvent = UNDEFINED;
/**
@@ -36,7 +36,7 @@ const handleDownEvent = FALSE;
* @param {ol.MapBrowserPointerEvent} mapBrowserEvent Event.
* @this {ol.interaction.Pointer}
*/
const handleMoveEvent = nullFunction;
const handleMoveEvent = UNDEFINED;
/**