From 8fdc4cc9fc5653994ea0663e461001f856ff3420 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Mon, 3 Sep 2018 15:25:31 +0200 Subject: [PATCH] Change property test in MousePosition options TypeScript doesn't like the current implementation: ``` src/ol/control/MousePosition.js(82,64): error TS2339: Property 'undefinedHTML' does not exist on type 'never'. ``` --- src/ol/control/MousePosition.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/control/MousePosition.js b/src/ol/control/MousePosition.js index 680a2120a8..97684cb8e2 100644 --- a/src/ol/control/MousePosition.js +++ b/src/ol/control/MousePosition.js @@ -79,7 +79,7 @@ class MousePosition extends Control { * @private * @type {string} */ - this.undefinedHTML_ = 'undefinedHTML' in options ? options.undefinedHTML : ' '; + this.undefinedHTML_ = options.undefinedHTML !== undefined ? options.undefinedHTML : ' '; /** * @private