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