appinfo can be specified multiple times, so use an array instead thanks @ahocevar

This commit is contained in:
Bart van den Eijnden
2012-11-20 16:42:06 +01:00
parent f410cd7e41
commit cbd9a90477
2 changed files with 5 additions and 2 deletions

View File

@@ -149,7 +149,10 @@ OpenLayers.Format.WFSDescribeFeatureType = OpenLayers.Class(
this.readChildNodes(node, obj.annotation);
},
"appinfo": function(node, obj) {
obj.appinfo = this.getChildValue(node);
if (!obj.appinfo) {
obj.appinfo = [];
}
obj.appinfo.push(this.getChildValue(node));
},
"documentation": function(node, obj) {
if (!obj.documentation) {