diff options
Manually linted
Diffstat (limited to 'ui/lib/icon-factory.js')
-rw-r--r-- | ui/lib/icon-factory.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/lib/icon-factory.js b/ui/lib/icon-factory.js index ee784dbd8..1f7cca859 100644 --- a/ui/lib/icon-factory.js +++ b/ui/lib/icon-factory.js @@ -34,9 +34,11 @@ IconFactory.prototype.cacheIcon = function (address, diameter, icon) { if (!(address in this.cache)) { var sizeCache = {} sizeCache[diameter] = icon - return this.cache[address] = sizeCache + this.cache[address] = sizeCache + return sizeCache } else { - return this.cache[address][diameter] = icon + this.cache[address][diameter] = icon + return icon } } |