From 8fde8a8921135112ccfdd13ce6b009755b5f71ed Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Tue, 21 Jun 2016 13:56:04 -0700 Subject: Manually linted --- ui/lib/icon-factory.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ui/lib/icon-factory.js') 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 } } -- cgit v1.2.3