FIX: Container appending was broken in Ember 2.4

This commit is contained in:
Robin Ward 2016-11-23 14:58:10 -05:00
parent c5687100b0
commit 9030e40041
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ export default class Connector {
let view; let view;
if (opts.component) { if (opts.component) {
const connector = container.lookupFactory('component:connector-container'); const connector = widget.register.lookupFactory('component:connector-container');
view = connector.create({ view = connector.create({
layoutName: `components/${opts.component}`, layoutName: `components/${opts.component}`,
model: widget.findAncestorModel() model: widget.findAncestorModel()
@ -51,7 +51,7 @@ export default class Connector {
Ember.setOwner(view, Ember.getOwner(mounted)); Ember.setOwner(view, Ember.getOwner(mounted));
} }
mounted._connected.push(view); mounted._connected.push(view);
view.renderer.replaceIn(view, $elem[0]); view.renderer.appendTo(view, $elem[0]);
} }
}); });