Remove private static members from GMLBase format
This commit is contained in:
@@ -98,9 +98,8 @@ GMLBase.GMLNS = 'http://www.opengis.net/gml';
|
|||||||
*
|
*
|
||||||
* @const
|
* @const
|
||||||
* @type {RegExp}
|
* @type {RegExp}
|
||||||
* @private
|
|
||||||
*/
|
*/
|
||||||
GMLBase.ONLY_WHITESPACE_RE_ = /^[\s\xa0]*$/;
|
const ONLY_WHITESPACE_RE = /^[\s\xa0]*$/;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -235,7 +234,7 @@ GMLBase.prototype.readFeatureElement = function(node, objectStack) {
|
|||||||
(n.childNodes.length === 1 &&
|
(n.childNodes.length === 1 &&
|
||||||
(n.firstChild.nodeType === 3 || n.firstChild.nodeType === 4))) {
|
(n.firstChild.nodeType === 3 || n.firstChild.nodeType === 4))) {
|
||||||
let value = getAllTextContent(n, false);
|
let value = getAllTextContent(n, false);
|
||||||
if (GMLBase.ONLY_WHITESPACE_RE_.test(value)) {
|
if (ONLY_WHITESPACE_RE.test(value)) {
|
||||||
value = undefined;
|
value = undefined;
|
||||||
}
|
}
|
||||||
values[localName] = value;
|
values[localName] = value;
|
||||||
|
|||||||
Reference in New Issue
Block a user