make WFS protocol and format more robust, r=ahocevar (closes #2237)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@9636 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2009-09-02 06:17:19 +00:00
parent f3f6974eb6
commit ef1952e953
2 changed files with 4 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ OpenLayers.Protocol.WFS.v1 = OpenLayers.Class(OpenLayers.Protocol, {
schema: this.schema
}, this.formatOptions));
}
if(!this.featureNS) {
if(!this.featureNS && this.featurePrefix) {
// featureNS autodetection
var readNode = this.format.readNode;
this.format.readNode = function(node, obj) {