mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-31 21:41:33 +00:00
Fixing view destroy for comments.
This commit is contained in:
parent
351a81ab61
commit
46ec1b41e7
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ NEWSBLUR.Views.StoryDetailView = Backbone.View.extend({
|
|||
var $original_comments = this.$('.NB-feed-story-comments-container,.NB-feed-story-comments');
|
||||
var $original_shares = this.$('.NB-feed-story-shares-container,.NB-feed-story-shares');
|
||||
if (this.model.get("comment_count") || this.model.get("share_count")) {
|
||||
this.comments_view = new NEWSBLUR.Views.StoryCommentsView({model: this.model}).render().el;
|
||||
this.comments_view = new NEWSBLUR.Views.StoryCommentsView({model: this.model}).render();
|
||||
var $comments = this.comments_view.el;
|
||||
$original_comments.replaceWith($comments);
|
||||
var $shares = $('.NB-story-comments-shares-teaser-wrapper', $comments);
|
||||
|
|
Loading…
Add table
Reference in a new issue