Use + rather than Number for string to number conversion

This commit is contained in:
Tom Payne
2013-01-24 16:31:56 +01:00
parent b0eb7a4b9b
commit 8cac270234

View File

@@ -321,7 +321,7 @@ ol.renderer.webgl.Map.prototype.expireCache_ = function(map, frameState) {
textureCacheEntry = /** @type {?ol.renderer.webgl.TextureCacheEntry} */
(this.textureCache_.peekLast());
if (goog.isNull(textureCacheEntry)) {
if (Number(this.textureCache_.peekLastKey()) == frameState.time) {
if (+this.textureCache_.peekLastKey() == frameState.time) {
break;
} else {
--this.textureCacheFrameMarkerCount_;