From 008a19f997a2959680922fd3dee536b31776fc2c Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 10 Dec 2014 17:19:46 -0500 Subject: [PATCH] More 1.9.0 fixes --- .../discourse/helpers/plugin-outlet.js.es6 | 6 ++---- .../templates/components/topic-map.hbs | 18 +++++++++--------- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6 b/app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6 index 66bde576377..c1844193b8f 100644 --- a/app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6 +++ b/app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6 @@ -89,10 +89,8 @@ export default function(connectionName, options) { var self = this; if (_connectorCache[connectionName]) { - var view, - childViews = _connectorCache[connectionName].map(function(vc) { - return vc.create({ context: self }); - }); + var view; + var childViews = _connectorCache[connectionName]; // If there is more than one view, create a container. Otherwise // just shove it in. diff --git a/app/assets/javascripts/discourse/templates/components/topic-map.hbs b/app/assets/javascripts/discourse/templates/components/topic-map.hbs index e26d698d386..14e4bee9b9d 100644 --- a/app/assets/javascripts/discourse/templates/components/topic-map.hbs +++ b/app/assets/javascripts/discourse/templates/components/topic-map.hbs @@ -46,8 +46,8 @@ {{/if}} {{#if showPosterAvatar}}
  • - {{#each details.fewParticipants}} - {{topic-participant participant=this}} + {{#each p in details.fewParticipants}} + {{topic-participant participant=p}} {{/each}}
  • {{/if}} @@ -56,8 +56,8 @@ {{#unless mapCollapsed}}
    - {{#each details.participants}} - {{topic-participant participant=this}} + {{#each p in details.participants}} + {{topic-participant participant=p}} {{/each}}
    @@ -65,16 +65,16 @@