From 9428fb109f02354cb6656c97a9249000ca00a3a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 20 Feb 2014 11:26:02 +0100 Subject: [PATCH] Fix handling of the color cache --- src/ol/color/color.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/color/color.js b/src/ol/color/color.js index 631ea552bc..a0befe3df5 100644 --- a/src/ol/color/color.js +++ b/src/ol/color/color.js @@ -186,7 +186,7 @@ ol.color.fromString = ( var i = 0; var key; for (key in cache) { - if (i++ & 3 === 0) { + if ((i++ & 3) === 0) { delete cache[key]; --cacheSize; }