@@ -10,7 +10,6 @@ import { assert } from '@ember/debug';
1010import { DEBUG } from '@glimmer/env' ;
1111import { join , once , run , schedule } from '@ember/runloop' ;
1212import { libraries } from '@ember/-internals/metal' ;
13- import { _loaded , onLoad , runLoadHooks } from './lib/lazy_load' ;
1413import { RSVP } from '@ember/-internals/runtime' ;
1514import { EventDispatcher } from '@ember/-internals/views' ;
1615import Route from '@ember/routing/route' ;
@@ -711,7 +710,6 @@ class Application extends Engine {
711710
712711 try {
713712 this . runInitializers ( ) ;
714- runLoadHooks ( 'application' , this ) ;
715713 this . advanceReadiness ( ) ;
716714 // Continues to `didBecomeReady`
717715 } catch ( error ) {
@@ -883,10 +881,6 @@ class Application extends Engine {
883881 willDestroy ( ) {
884882 super . willDestroy ( ) ;
885883
886- if ( _loaded [ 'application' ] === this ) {
887- _loaded [ 'application' ] = undefined ;
888- }
889-
890884 if ( this . _applicationInstances . size ) {
891885 this . _applicationInstances . forEach ( ( i ) => i . destroy ( ) ) ;
892886 this . _applicationInstances . clear ( ) ;
@@ -1137,4 +1131,4 @@ function commonSetupRegistry(registry: Registry) {
11371131 registry . register ( 'service:router' , RouterService ) ;
11381132}
11391133
1140- export { Application as default , _loaded , onLoad , runLoadHooks } ;
1134+ export { Application as default } ;
0 commit comments