From 1140c22164cee68632993454851ecbe7a3c3b93a Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Fri, 9 Feb 2018 16:13:23 -0700 Subject: [PATCH] Remove private static members from GMLBase format --- src/ol/format/GMLBase.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ol/format/GMLBase.js b/src/ol/format/GMLBase.js index 2f28bba00b..fdf1d44071 100644 --- a/src/ol/format/GMLBase.js +++ b/src/ol/format/GMLBase.js @@ -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;