Use + rather than Number for string to number conversion
This commit is contained in:
@@ -321,7 +321,7 @@ ol.renderer.webgl.Map.prototype.expireCache_ = function(map, frameState) {
|
|||||||
textureCacheEntry = /** @type {?ol.renderer.webgl.TextureCacheEntry} */
|
textureCacheEntry = /** @type {?ol.renderer.webgl.TextureCacheEntry} */
|
||||||
(this.textureCache_.peekLast());
|
(this.textureCache_.peekLast());
|
||||||
if (goog.isNull(textureCacheEntry)) {
|
if (goog.isNull(textureCacheEntry)) {
|
||||||
if (Number(this.textureCache_.peekLastKey()) == frameState.time) {
|
if (+this.textureCache_.peekLastKey() == frameState.time) {
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
--this.textureCacheFrameMarkerCount_;
|
--this.textureCacheFrameMarkerCount_;
|
||||||
|
|||||||
Reference in New Issue
Block a user