Allow Ember 2.4 to connect views to widgets
This commit is contained in:
parent
96f5079006
commit
1d784f5758
|
@ -25,6 +25,9 @@ export default class Connector {
|
||||||
templateName: opts.templateName,
|
templateName: opts.templateName,
|
||||||
context
|
context
|
||||||
});
|
});
|
||||||
|
if (Ember.setOwner) {
|
||||||
|
Ember.setOwner(view, Ember.getOwner(mounted));
|
||||||
|
}
|
||||||
mounted._connected.push(view);
|
mounted._connected.push(view);
|
||||||
|
|
||||||
view.renderer.replaceIn(view, $elem[0]);
|
view.renderer.replaceIn(view, $elem[0]);
|
||||||
|
|
Loading…
Reference in New Issue