coding standards - no multiple returns
git-svn-id: http://svn.openlayers.org/trunk/openlayers@892 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -82,23 +82,23 @@ OpenLayers.Layer.Grid.prototype =
|
|||||||
if (zoomChanged) {
|
if (zoomChanged) {
|
||||||
this.grid = null;
|
this.grid = null;
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!this.grid || zoomChanged) {
|
|
||||||
this._initTiles();
|
|
||||||
} else {
|
} else {
|
||||||
var i = 0;
|
if (!this.grid || zoomChanged) {
|
||||||
while (this.getGridBounds().bottom > bounds.bottom) {
|
this._initTiles();
|
||||||
this.insertRow(false);
|
} else {
|
||||||
}
|
var i = 0;
|
||||||
while (this.getGridBounds().left > bounds.left) {
|
while (this.getGridBounds().bottom > bounds.bottom) {
|
||||||
this.insertColumn(true);
|
this.insertRow(false);
|
||||||
}
|
}
|
||||||
while (this.getGridBounds().top < bounds.top) {
|
while (this.getGridBounds().left > bounds.left) {
|
||||||
this.insertRow(true);
|
this.insertColumn(true);
|
||||||
}
|
}
|
||||||
while (this.getGridBounds().right < bounds.right) {
|
while (this.getGridBounds().top < bounds.top) {
|
||||||
this.insertColumn(false);
|
this.insertRow(true);
|
||||||
|
}
|
||||||
|
while (this.getGridBounds().right < bounds.right) {
|
||||||
|
this.insertColumn(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user