Fix a typo - it's writers, not witers

This commit is contained in:
ahocevar
2013-12-06 00:53:16 +01:00
parent 1ac93d09c9
commit 1bf4b9bf49
4 changed files with 25 additions and 25 deletions

View File

@@ -414,7 +414,7 @@ ol.parser.ogc.GML = function(opt_options) {
}
}
};
this.featureNSWiters_ = {
this.featureNSWriters_ = {
'_typeName': function(feature) {
var node = this.createElementNS('feature:' + this.featureType,
this.featureNS);
@@ -472,7 +472,7 @@ ol.parser.ogc.GML = function(opt_options) {
}
};
if (goog.isDef(this.featureNS)) {
this.writers[this.featureNS] = this.featureNSWiters_;
this.writers[this.featureNS] = this.featureNSWriters_;
}
goog.base(this);
};
@@ -541,7 +541,7 @@ ol.parser.ogc.GML.prototype.readNode = function(node, obj, opt_first) {
(/^(.*:)?featureMembers?$/).test(node.parentNode.nodeName))) {
this.featureType = node.nodeName.split(':').pop();
this.readers[node.namespaceURI] = this.featureNSReaders_;
this.writers[node.namespaceURI] = this.featureNSWiters_;
this.writers[node.namespaceURI] = this.featureNSWriters_;
this.featureNS = node.namespaceURI;
this.autoConfig = true;
}

View File

@@ -22,7 +22,7 @@ ol.parser.ogc.GML_v3 = function(opt_options) {
'http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/' +
'1.0.0/gmlsf.xsd';
goog.base(this, opt_options);
this.featureNSWiters_['_geometry'] = function(obj) {
this.featureNSWriters_['_geometry'] = function(obj) {
var node = this.createElementNS('feature:' + obj.name,
this.featureNS);
var geometry = obj.value;