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'.
```
This commit is contained in:
Frederic Junod
2018-09-03 15:25:31 +02:00
parent ad1dec58ec
commit 8fdc4cc9fc

View File

@@ -79,7 +79,7 @@ class MousePosition extends Control {
* @private * @private
* @type {string} * @type {string}
*/ */
this.undefinedHTML_ = 'undefinedHTML' in options ? options.undefinedHTML : ' '; this.undefinedHTML_ = options.undefinedHTML !== undefined ? options.undefinedHTML : ' ';
/** /**
* @private * @private