Merge pull request #1571 from elemoine/color

Correctry handle color cache size
This commit is contained in:
Éric Lemoine
2014-01-22 06:10:59 -08:00

View File

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