From 9030e4004184747a5f24b1bd1d6165f79a81e03f Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 23 Nov 2016 14:58:10 -0500 Subject: [PATCH] FIX: Container appending was broken in Ember 2.4 --- app/assets/javascripts/discourse/widgets/connector.js.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/widgets/connector.js.es6 b/app/assets/javascripts/discourse/widgets/connector.js.es6 index 22f225e808a..1cea95ae824 100644 --- a/app/assets/javascripts/discourse/widgets/connector.js.es6 +++ b/app/assets/javascripts/discourse/widgets/connector.js.es6 @@ -25,7 +25,7 @@ export default class Connector { let view; if (opts.component) { - const connector = container.lookupFactory('component:connector-container'); + const connector = widget.register.lookupFactory('component:connector-container'); view = connector.create({ layoutName: `components/${opts.component}`, model: widget.findAncestorModel() @@ -51,7 +51,7 @@ export default class Connector { Ember.setOwner(view, Ember.getOwner(mounted)); } mounted._connected.push(view); - view.renderer.replaceIn(view, $elem[0]); + view.renderer.appendTo(view, $elem[0]); } });