An instance of Ember.Application is the starting point for every Ember application. It helps to instantiate, initialize and coordinate the many objects that make up your app.
Application's router.
Defines the properties that will be concatenated from the superclass (instead of overridden).
The DOM events for which the event dispatcher should listen.
The Ember.EventDispatcher responsible for delegating events to this application's views.
Destroyed object property flag. If this property is true the observers and bindings were already removed by the effect of calling the destroy() method.
Destruction scheduled flag. The destroy() method has been called. The object stays intact until the end of the run loop at which point the isDestroyed flag is set.
Called when the Application has become ready. The call will be delayed until the DOM has become ready.
Set this to provide an alternate class to Ember.DefaultResolver
The root DOM element of the Application. This can be specified as an element or a jQuery-compatible selector string.
This is the element that will be passed to the Application's, eventDispatcher, which sets up the listeners for event delegation. Every view in your application should be a child of the element you specify here.
Call advanceReadiness after any asynchronous setup logic has completed. Each call to deferReadiness must be matched by a call to advanceReadiness or the application will never become ready and routing will not begin.
any
number
Use this to defer readiness until some condition is true.
This allows you to perform asynchronous setup logic and defer booting your application until the setup has finished.
However, if the setup requires a loading UI, it might be better to use the router for this purpose.
Destroys an object by setting the isDestroyed flag and removing its metadata, which effectively destroys observers and bindings. If you try to set a property on a destroyed object, an exception will be raised. Note that destruction is scheduled for the end of the run loop and does not happen immediately. It will set an isDestroying flag immediately.
boolean
boolean
Iterate over each computed property for the class, passing its name and any associated metadata (see metaForProperty) to the callback.
any
{}
{}
any
boolean
number
defines an injection or typeInjection
This injects the test helpers into the window's scope. If a function of the
same name has already been defined it will be cached (so that it can be reset
if the helper is removed with unregisterHelper
or removeTestHelpers
).
Any callbacks registered with onInjectHelpers
will be called once the
helpers have been injected.
Returns the original hash that was passed to meta().
property name
{}
registers a factory for later injection
type:name (e.g., 'model:user')
(e.g., App.Person)
This removes all helpers that have been registered, and resets and functions that were overridden by the helpers.
Reset the application. This is typically used only in tests.
This hook defers the readiness of the application, so that you can start the app when your tests are ready to run. It also sets the router's location to 'none', so that the window's location will not be modified (preventing both accidental leaking of state between tests and interference with your testing framework).
Returns a string representation which attempts to provide more information than Javascript's toString
typically does, in a generic way for all Ember objects (e.g., "
string
any