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

View File

@@ -152,8 +152,7 @@ ol.structs.RTree = function() {
* @type {ol.structs.RTreeNode_}
*/
this.root_ = new ol.structs.RTreeNode_(
Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY,
Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY, null, 0);
-Infinity, -Infinity, Infinity, Infinity, null, 0);
};