Prefer dot notation
This commit is contained in:
@@ -86,19 +86,19 @@ OpenLayers.Format.WCSCapabilities.v1_1_0 = OpenLayers.Class(
|
|||||||
"SupportedCRS": function(node, coverageSummary) {
|
"SupportedCRS": function(node, coverageSummary) {
|
||||||
var crs = this.getChildValue(node);
|
var crs = this.getChildValue(node);
|
||||||
if(crs) {
|
if(crs) {
|
||||||
if(!coverageSummary["supportedCRS"]) {
|
if(!coverageSummary.supportedCRS) {
|
||||||
coverageSummary["supportedCRS"] = [];
|
coverageSummary.supportedCRS = [];
|
||||||
}
|
}
|
||||||
coverageSummary["supportedCRS"].push(crs);
|
coverageSummary.supportedCRS.push(crs);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"SupportedFormat": function(node, coverageSummary) {
|
"SupportedFormat": function(node, coverageSummary) {
|
||||||
var format = this.getChildValue(node);
|
var format = this.getChildValue(node);
|
||||||
if(format) {
|
if(format) {
|
||||||
if(!coverageSummary["supportedFormat"]) {
|
if(!coverageSummary.supportedFormat) {
|
||||||
coverageSummary["supportedFormat"] = [];
|
coverageSummary.supportedFormat = [];
|
||||||
}
|
}
|
||||||
coverageSummary["supportedFormat"].push(format);
|
coverageSummary.supportedFormat.push(format);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user