From 46ec1b41e775c0dcb08a3607ac07c0c7a7d0bcc7 Mon Sep 17 00:00:00 2001 From: Samuel Clay Date: Mon, 16 Dec 2013 12:20:56 -0800 Subject: [PATCH] Fixing view destroy for comments. --- media/js/newsblur/views/story_detail_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/js/newsblur/views/story_detail_view.js b/media/js/newsblur/views/story_detail_view.js index 0266d9e2a..1e22a65ff 100644 --- a/media/js/newsblur/views/story_detail_view.js +++ b/media/js/newsblur/views/story_detail_view.js @@ -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);