Fix handling of the color cache

This commit is contained in:
Éric Lemoine
2014-02-20 11:26:02 +01:00
parent 3b79e2f4c7
commit 9428fb109f

View File

@@ -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;
}