fixing href regression introduced with r11978. r=bartvde (see #3351)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@12064 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
ahocevar
2011-06-07 20:44:06 +00:00
parent e4b9ba187a
commit f27073e6d3
2 changed files with 43 additions and 2 deletions
+8 -1
View File
@@ -305,15 +305,22 @@ OpenLayers.Format.WMSCapabilities.v1 = OpenLayers.Class(
"Get": function(node, obj) {
obj.get = {};
this.readChildNodes(node, obj.get);
// backwards compatibility
if (!obj.href) {
obj.href = obj.get.href;
}
},
"Post": function(node, obj) {
obj.post = {};
this.readChildNodes(node, obj.post);
// backwards compatibility
if (!obj.href) {
obj.href = obj.get.href;
}
},
"GetMap": function(node, obj) {
obj.getmap = {formats: []};
this.readChildNodes(node, obj.getmap);
obj.getmap.href = obj.getmap.get.href || obj.getmap.post.href; // backwards compatibility
},
"GetFeatureInfo": function(node, obj) {
obj.getfeatureinfo = {formats: []};