Prefer dot notation

This commit is contained in:
Christopher Eykamp
2013-01-02 14:36:04 +01:00
parent f06931b1b7
commit ddc6bd817d

View File

@@ -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);
} }
}, },