Fixing issue around rendering story titles with no feed.

This commit is contained in:
Samuel Clay 2013-02-14 15:40:10 -08:00
parent 73c77938bd
commit 708f583216

View file

@ -106,6 +106,7 @@ NEWSBLUR.Views.StoryTitleView = Backbone.View.extend({
var $inner = this.$st.find(".NB-storytitles-feed-border-inner");
var $outer = this.$st.find(".NB-storytitles-feed-border-outer");
var feed = NEWSBLUR.assets.get_feed(this.model.get('story_feed_id'));
if (!feed) return;
$inner.css('background-color', '#' + feed.get('favicon_fade'));
$outer.css('background-color', '#' + feed.get('favicon_color'));