Remove private static members from GMLBase format

This commit is contained in:
Tim Schaub
2018-02-09 16:13:23 -07:00
parent 6935bbc851
commit 1140c22164

View File

@@ -98,9 +98,8 @@ GMLBase.GMLNS = 'http://www.opengis.net/gml';
*
* @const
* @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.firstChild.nodeType === 3 || n.firstChild.nodeType === 4))) {
let value = getAllTextContent(n, false);
if (GMLBase.ONLY_WHITESPACE_RE_.test(value)) {
if (ONLY_WHITESPACE_RE.test(value)) {
value = undefined;
}
values[localName] = value;