From 6a71ff26042f2e6f9516f9616d88159a2acd8bec Mon Sep 17 00:00:00 2001 From: Tom Dale Date: Tue, 10 Mar 2015 10:42:11 -0700 Subject: [PATCH] Use less container trickery thanks @igorT --- packages/ember-application/lib/system/application.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/ember-application/lib/system/application.js b/packages/ember-application/lib/system/application.js index a0c6346d3ba..3bc29b4d604 100644 --- a/packages/ember-application/lib/system/application.js +++ b/packages/ember-application/lib/system/application.js @@ -333,10 +333,7 @@ var Application = Namespace.extend(DeferredMixin, { // For the default instance only, set the view registry to the global // Ember.View.views hash for backwards-compatibility. - var registry = instance.applicationRegistry; - registry.unregister('-view-registry:main'); - registry.register('-view-registry:main', EmberView.views); - registry.optionsForType('-view-registry', { instantiate: false }); + EmberView.views = instance.container.lookup('-view-registry:main'); // TODO2.0: Legacy support for App.__container__ // and global methods on App that rely on a single,