Ever since ember 1.12 i get a deprecation notice for this line of code. Which sits in a component not an initializer.
this.container.lookup('application:main');
Notice:
DEPRECATION:
lookup
was called on a Registry. Theinitializer
API no longer receives a container, and you should use aninstanceInitializer
to look up objects from the container. See http://ift.tt/1KNHHU9 for more details.
What other way is there to get a hold of the main application container?
Aucun commentaire:
Enregistrer un commentaire