coding style in WMSCapabilities/v1.js, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12210 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -113,6 +113,8 @@ OpenLayers.Format.WMSCapabilities.v1 = OpenLayers.Class(
|
||||
layer.formats = capability.request.getmap.formats;
|
||||
}
|
||||
|
||||
var i, len;
|
||||
|
||||
// deal with property inheritance
|
||||
if(parentLayer) {
|
||||
// add style
|
||||
@@ -133,9 +135,10 @@ OpenLayers.Format.WMSCapabilities.v1 = OpenLayers.Class(
|
||||
"dimensions",
|
||||
"authorityURLs"];
|
||||
|
||||
var key, j;
|
||||
for (j=0; j<attributes.length; j++) {
|
||||
key = attributes[j];
|
||||
var key;
|
||||
|
||||
for (i=0, len=attributes.length; i<len; i++) {
|
||||
key = attributes[i];
|
||||
if (key in parentLayer) {
|
||||
// only take parent value if not present (null or undefined)
|
||||
if (layer[key] == null) {
|
||||
@@ -157,15 +160,15 @@ OpenLayers.Format.WMSCapabilities.v1 = OpenLayers.Class(
|
||||
}
|
||||
}
|
||||
|
||||
for (j=0; j<complexAttr.length; j++) {
|
||||
key = complexAttr[j];
|
||||
for (i=0, len=complexAttr.length; i<len; i++) {
|
||||
key = complexAttr[i];
|
||||
layer[key] = OpenLayers.Util.applyDefaults(
|
||||
layer[key], parentLayer[key]);
|
||||
}
|
||||
}
|
||||
|
||||
// process sublayers
|
||||
for (var i=0, len=layer.nestedLayers.length; i<len; i++) {
|
||||
for (i=0, len=layer.nestedLayers.length; i<len; i++) {
|
||||
var childLayer = layer.nestedLayers[i];
|
||||
this.processLayer(capability, childLayer, layer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user