From d2bd7e23fd642446792e2d0baf8ed22c838e0228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20B=C3=BCnting?= Date: Thu, 27 Aug 2015 16:34:42 +0200 Subject: [PATCH] cache icons #6 --- app/services/icon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/icon.js b/app/services/icon.js index 450b5308..fa50d815 100644 --- a/app/services/icon.js +++ b/app/services/icon.js @@ -198,7 +198,7 @@ var IconService = Ember.Service.extend({ function extractFromSet(set) { var iconName = id.slice(id.lastIndexOf(':') + 1); var icon = set.querySelector('#' + iconName); - return !icon ? Ember.RSVP.Promise.reject(id) : new Icon(icon, iconSetConfig); + return !icon ? Ember.RSVP.Promise.reject(id) : Ember.RSVP.Promise.resolve(new Icon(icon, iconSetConfig); } },