Merge pull request #1571 from elemoine/color
Correctry handle color cache size
This commit is contained in:
@@ -188,6 +188,7 @@ ol.color.fromString = (
|
|||||||
for (key in cache) {
|
for (key in cache) {
|
||||||
if (i++ & 3 === 0) {
|
if (i++ & 3 === 0) {
|
||||||
delete cache[key];
|
delete cache[key];
|
||||||
|
--cacheSize;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user