From 7eac7303cd07f97bf6f281b98e6792b4862ff4d5 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 4 Oct 2013 15:35:43 -0400 Subject: [PATCH] Better unloading of Poster expansion --- app/assets/javascripts/discourse/routes/topic_route.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/routes/topic_route.js b/app/assets/javascripts/discourse/routes/topic_route.js index 9720c35a51c..0a2f1af95e4 100644 --- a/app/assets/javascripts/discourse/routes/topic_route.js +++ b/app/assets/javascripts/discourse/routes/topic_route.js @@ -91,7 +91,7 @@ Discourse.TopicRoute = Discourse.Route.extend({ // Clear the search context this.controllerFor('search').set('searchContext', null); - this.controllerFor('posterExpansion').set('model', null); + this.controllerFor('posterExpansion').set('visible', false); var topicController = this.controllerFor('topic'), postStream = topicController.get('postStream');