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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user