Skip to content

Commit

Permalink
Merge pull request openlayers#1230 from glennvorhes/for_loop_iter
Browse files Browse the repository at this point in the history
Remove declared iteration variables before for-loop
  • Loading branch information
twpayne committed Nov 5, 2013
2 parents 333ca47 + 0fc727f commit ee53fa7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ol/extent.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ ol.Extent;
*/
ol.extent.boundingExtent = function(coordinates) {
var extent = ol.extent.createEmpty();
var n = coordinates.length;
var i;
for (i = 0; i < n; ++i) {
for (var i = 0, ii = coordinates.length; i < ii; ++i) {
ol.extent.extendCoordinate(extent, coordinates[i]);
}
return extent;
Expand Down

0 comments on commit ee53fa7

Please sign in to comment.