From c2bdba171d7b8fb4a8b46ea9e64525cd76c39f60 Mon Sep 17 00:00:00 2001 From: Jason Mitchell Date: Fri, 20 May 2016 22:36:31 -0700 Subject: [PATCH] Loop for parent app #32 --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index da7b681..0420649 100644 --- a/index.js +++ b/index.js @@ -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; } @@ -29,6 +29,8 @@ module.exports = { } else { this.importBrowserDependencies(app); } + + return app; }, importFastBootDependencies: function(app) { @@ -207,4 +209,4 @@ module.exports = { // has started, which happens after this file is evaluated. function isFastBoot() { return process.env.EMBER_CLI_FASTBOOT === 'true'; -} \ No newline at end of file +}