Use ii instead of len for array length cache for consistency

This commit is contained in:
Tom Payne
2013-04-20 11:29:50 +02:00
parent c48b9c5118
commit b2cc0c9bd8
3 changed files with 3 additions and 3 deletions

View File

@@ -270,7 +270,7 @@ ol.parser.KML = function(opt_options) {
var reg = this.regExes;
var coords = coordstr.replace(reg.trimSpace, '').split(reg.splitSpace);
var coordArray = [];
for (var i = 0, len = coords.length; i < len; i++) {
for (var i = 0, ii = coords.length; i < ii; i++) {
var array = coords[i].replace(reg.removeSpace, '').split(',');
var pair = [];
var jj = Math.min(array.length, this.dimension);

View File

@@ -16,7 +16,7 @@ ol.parser.ogc.WMSCapabilities_v1_1_0 = function() {
'SRS': function(node, obj) {
var srs = this.getChildValue(node);
var values = srs.split(/ +/);
for (var i = 0, len = values.length; i < len; i++) {
for (var i = 0, ii = values.length; i < ii; i++) {
obj['srs'][values[i]] = true;
}
}

View File

@@ -24,7 +24,7 @@ ol.parser.ogc.WMSCapabilities_v1_1_1_WMSC = function() {
},
'Resolutions': function(node, tileset) {
var res = this.getChildValue(node).split(' ');
for (var i = 0, len = res.length; i < len; i++) {
for (var i = 0, ii = res.length; i < ii; i++) {
if (res[i] !== '') {
tileset['resolutions'].push(parseFloat(res[i]));
}