Use toString() instead of + ''
This commit is contained in:
@@ -540,7 +540,7 @@ ol.structs.RBush.prototype.getExtent = function(opt_extent) {
|
|||||||
*/
|
*/
|
||||||
ol.structs.RBush.prototype.getKey_ = function(value) {
|
ol.structs.RBush.prototype.getKey_ = function(value) {
|
||||||
goog.asserts.assert(goog.isObject(value));
|
goog.asserts.assert(goog.isObject(value));
|
||||||
return goog.getUid(value) + '';
|
return goog.getUid(value).toString();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -37,9 +37,9 @@ ol.TileUrlFunction.createFromTemplate = function(template) {
|
|||||||
if (goog.isNull(tileCoord)) {
|
if (goog.isNull(tileCoord)) {
|
||||||
return undefined;
|
return undefined;
|
||||||
} else {
|
} else {
|
||||||
return template.replace('{z}', '' + tileCoord.z)
|
return template.replace('{z}', tileCoord.z.toString())
|
||||||
.replace('{x}', '' + tileCoord.x)
|
.replace('{x}', tileCoord.x.toString())
|
||||||
.replace('{y}', '' + tileCoord.y);
|
.replace('{y}', tileCoord.y.toString());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user