Skip to content

Commit

Permalink
cache icons mike1o1#6
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Bünting committed Aug 27, 2015
1 parent e23f903 commit d2bd7e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
},

Expand Down

0 comments on commit d2bd7e2

Please sign in to comment.