_globalsModeBoolean
private
Whether the application should be configured for the legacy "globals mode". Under this mode, the Application object serves as a global namespace for all classes.
let App = Ember.Application.create({ ... }); App.Router.reopen({ location: 'none' }); App.Router.map({ ... }); App.MyComponent = Ember.Component.extend({ ... });
This flag also exposes other internal APIs that assumes the existence of a special "default instance", like App.__container__.lookup(...)
.
This option is currently not configurable, its value is derived from the autoboot
flag – disabling autoboot
also implies opting-out of globals mode support, although they are ultimately orthogonal concerns.
Some of the global modes features are already deprecated in 1.x. The existence of this flag is to untangle the globals mode code paths from the autoboot code paths, so that these legacy features can be reviewed for deprecation/removal separately.
Forcing the (autoboot=true, _globalsMode=false) here and running the tests would reveal all the places where we are still relying on these legacy behavior internally (mostly just tests).
Default: true
Please login to continue.