Correctry handle color cache size

This commit is contained in:
Éric Lemoine
2014-01-22 10:17:15 +01:00
parent 913038a124
commit 9a68f27eae

View File

@@ -188,6 +188,7 @@ ol.color.fromString = (
for (key in cache) {
if (i++ & 3 === 0) {
delete cache[key];
--cacheSize;
}
}
}