Skip to content

Commit

Permalink
[BUGFIX beta] Use public API for container in instance initializer.
Browse files Browse the repository at this point in the history
As of 2.1.0 the ApplicationInstance instance that we receive in an
instance initializer has a `lookup` method on it directly. This is new
public API that replaces `appInstance.container.lookup` as of 2.1.0.
  • Loading branch information
rwjblue committed Aug 17, 2015
1 parent cea0b0c commit ce103da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@param {Ember.ApplicationInstance} applicationOrRegistry
*/
export default function initializeStoreService(application) {
var container = application.container;
var container = application.lookup ? application : application.container;
// Eagerly generate the store so defaultStore is populated.
container.lookup('service:store');
}

0 comments on commit ce103da

Please sign in to comment.