Use Infinity instead of Number.POSITIVE_INFINITY

This commit is contained in:
Tom Payne
2013-03-22 11:34:44 +01:00
parent 9e1b37ada3
commit 8b5367c947
3 changed files with 4 additions and 5 deletions
+2 -2
View File
@@ -40,9 +40,9 @@ goog.inherits(ol.geom.AbstractCollection, ol.geom.Geometry);
ol.geom.AbstractCollection.prototype.getBounds = function() {
if (goog.isNull(this.bounds)) {
var minX,
minY = minX = Number.POSITIVE_INFINITY,
minY = minX = Infinity,
maxX,
maxY = maxX = Number.NEGATIVE_INFINITY,
maxY = maxX = -Infinity,
components = this.components,
len = components.length,
bounds, i;