explicit radix

This commit is contained in:
AJ ONeal 2016-07-25 22:56:23 -04:00 committed by GitHub
parent 61b3ea3f37
commit 8c17bc9e4f
1 changed files with 2 additions and 2 deletions

View File

@ -314,8 +314,8 @@ S2.S2Cell.prototype.getNeighbors = function() {
var L = {}; var L = {};
L.LatLng = function (/*Number*/ rawLat, /*Number*/ rawLng, /*Boolean*/ noWrap) { L.LatLng = function (/*Number*/ rawLat, /*Number*/ rawLng, /*Boolean*/ noWrap) {
var lat = parseFloat(rawLat); var lat = parseFloat(rawLat, 10);
var lng = parseFloat(rawLng); var lng = parseFloat(rawLng, 10);
if (isNaN(lat) || isNaN(lng)) { if (isNaN(lat) || isNaN(lng)) {
throw new Error('Invalid LatLng object: (' + rawLat + ', ' + rawLng + ')'); throw new Error('Invalid LatLng object: (' + rawLat + ', ' + rawLng + ')');