Skip to content

Commit

Permalink
Use less container trickery
Browse files Browse the repository at this point in the history
thanks @igorT
  • Loading branch information
tomdale committed Mar 10, 2015
1 parent 42993e5 commit 6a71ff2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/ember-application/lib/system/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

This comment has been minimized.

Copy link
@stefanpenner

stefanpenner Nov 26, 2015

Member

what cleans this up, to prevent this instance from leaking?


// TODO2.0: Legacy support for App.__container__
// and global methods on App that rely on a single,
Expand Down

0 comments on commit 6a71ff2

Please sign in to comment.