Allow Ember 2.4 to connect views to widgets

This commit is contained in:
Robin Ward 2016-11-09 13:57:43 -05:00
parent 96f5079006
commit 1d784f5758
1 changed files with 3 additions and 0 deletions

View File

@ -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]);