Skip to content

Commit

Permalink
Loop for parent app #32
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmit committed May 21, 2016
1 parent de06484 commit c2bdba1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = {
this._super.included.apply(this, arguments);

// see: https://github.com/ember-cli/ember-cli/issues/3718
if (typeof app.import !== 'function' && app.app) {
while (typeof app.import !== 'function' && app.app) {
app = app.app;
}

Expand All @@ -29,6 +29,8 @@ module.exports = {
} else {
this.importBrowserDependencies(app);
}

return app;
},

importFastBootDependencies: function(app) {
Expand Down Expand Up @@ -207,4 +209,4 @@ module.exports = {
// has started, which happens after this file is evaluated.
function isFastBoot() {
return process.env.EMBER_CLI_FASTBOOT === 'true';
}
}

0 comments on commit c2bdba1

Please sign in to comment.