mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fixing lost event bindings on stories when in single story mode. Thanks to @reybango for finding the bug.
This commit is contained in:
parent
b4d45c9c34
commit
8413b4513f
1 changed files with 3 additions and 2 deletions
|
@ -143,8 +143,9 @@ NEWSBLUR.Views.StoryListView = Backbone.View.extend({
|
|||
if (NEWSBLUR.assets.preference('story_layout') != 'split') return;
|
||||
|
||||
this.collection.any(_.bind(function(story) {
|
||||
if (story && story.story_view && story.get('selected')) {
|
||||
this.$el.html(story.story_view.$el);
|
||||
if (story && story.get('selected') && story.story_view) {
|
||||
this.$el.html(story.story_view.el);
|
||||
story.story_view.setElement(story.story_view.el);
|
||||
return true;
|
||||
}
|
||||
}, this));
|
||||
|
|
Loading…
Add table
Reference in a new issue