Skip to content

Commit

Permalink
Don't override environment from the import
Browse files Browse the repository at this point in the history
This is causing some confusing in the Babel transpilation, and probably
human readers too.
  • Loading branch information
Godhuda committed Nov 10, 2015
1 parent bc486ef commit 884f829
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,8 @@ let ApplicationInstance = EmberObject.extend(RegistryProxy, ContainerProxy, {
options = new BootOptions(options);

let registry = this.__registry__;
let environment = options.toEnvironment();

registry.register('-environment:main', environment, { instantiate: false });
registry.register('-environment:main', options.toEnvironment(), { instantiate: false });
registry.injection('view', '_environment', '-environment:main');
registry.injection('route', '_environment', '-environment:main');

Expand Down

0 comments on commit 884f829

Please sign in to comment.