Correctry handle color cache size
This commit is contained in:
1 parent
913038a124
commit
9a68f27eae
1 file changed
+1
@@ -188,6 +188,7 @@ ol.color.fromString = (
|
||||
for (key in cache) {
|
||||
if (i++ & 3 === 0) {
|
||||
delete cache[key];
|
||||
--cacheSize;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user