Migrate this.container to getOwner(this)

This commit is contained in:
Robin Ward
2016-11-04 11:32:12 -04:00
parent 24ad68e765
commit 70fb2431a1
35 changed files with 154 additions and 74 deletions

View File

@@ -1,6 +1,8 @@
import { getOwner } from 'discourse-common/lib/get-owner';
export default Ember.Component.extend({
router: function() {
return this.container.lookup('router:main');
return getOwner(this).lookup('router:main');
}.property(),
active: function() {