FIX: Container appending was broken in Ember 2.4
This commit is contained in:
parent
c5687100b0
commit
9030e40041
|
@ -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]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue