Merge pull request #1730 from elemoine/colorcache

Fix handling of the color cache
This commit is contained in:
Éric Lemoine
2014-02-20 13:33:39 +01:00

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