Use more compact constants
This commit is contained in:
@@ -46,9 +46,7 @@ ol.Extent.boundingExtent = function(var_args) {
|
||||
* @return {ol.Extent} Empty extent.
|
||||
*/
|
||||
ol.Extent.createEmptyExtent = function() {
|
||||
return new ol.Extent(
|
||||
Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY,
|
||||
Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY);
|
||||
return new ol.Extent(Infinity, Infinity, -Infinity, -Infinity);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user