Always pass base to parseInt

This commit is contained in:
Tom Payne
2012-07-18 00:12:22 +02:00
parent a421943eb1
commit 86335211a6

View File

@@ -56,7 +56,7 @@ ol.TileCoord.prototype.toString = function() {
ol.TileCoord.fromString = function(str) {
var v = str.split('/');
v = goog.array.map(v, function(e, i, a) {
return parseInt(e);
return parseInt(e, 10);
});
return new ol.TileCoord(v[0], v[1], v[2]);
};