Remove goog.string.remove

Use standard replace method instead.
This commit is contained in:
Guillaume Beraudo
2015-10-01 14:54:04 +02:00
parent 63ae481dae
commit 9b3f61a084

View File

@@ -4,7 +4,6 @@ goog.require('goog.array');
goog.require('goog.asserts');
goog.require('goog.dom.NodeType');
goog.require('goog.object');
goog.require('goog.string');
goog.require('ol.format.GML2');
goog.require('ol.format.XMLFeature');
goog.require('ol.xml');
@@ -88,8 +87,8 @@ ol.format.WMSGetFeatureInfo.prototype.readFeatures_ =
ol.format.WMSGetFeatureInfo.layerIdentifier_) >= 0,
'localName of layer node should match layerIdentifier');
var featureType = goog.string.remove(layer.localName,
ol.format.WMSGetFeatureInfo.layerIdentifier_) +
var toRemove = ol.format.WMSGetFeatureInfo.layerIdentifier_;
var featureType = layer.localName.replace(toRemove, '') +
ol.format.WMSGetFeatureInfo.featureIdentifier_;
context['featureType'] = featureType;