From 30a814b105d5d7563fd78fc8f9b9d18eb5ec775d Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 22 Oct 2014 16:37:13 +1100 Subject: [PATCH] PERF: unbind some stuff to speed up topic list --- .../discourse/templates/list/topic_list_item.hbs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/list/topic_list_item.hbs b/app/assets/javascripts/discourse/templates/list/topic_list_item.hbs index 4a52efa70..9227aa8b9 100644 --- a/app/assets/javascripts/discourse/templates/list/topic_list_item.hbs +++ b/app/assets/javascripts/discourse/templates/list/topic_list_item.hbs @@ -3,21 +3,21 @@ {{input type="checkbox" checked=checked}} {{else}} - {{#if canStar}} + {{#unboundIf canStar}} - {{/if}} + {{/unboundIf}} {{/if}} {{topic-status topic=this.model}} {{topic-link this}} - {{#if showTopicPostBadges}} + {{#unboundIf showTopicPostBadges}} {{topic-post-badges unread=unread newPosts=displayNewPosts unseen=unseen url=lastUnreadUrl}} - {{/if}} + {{/unboundIf}} - {{#if hasExcerpt}} + {{#unboundIf hasExcerpt}}
{{{excerpt}}} {{#if excerptTruncated}} @@ -27,7 +27,7 @@ {{i18n topic.clear_pin.title}} {{/if}}
- {{/if}} + {{/unboundIf}} {{#unless hideCategory}}