Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX beta] Ensure Engines can boot without error. #4969

Merged
merged 2 commits into from
May 4, 2017

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented May 4, 2017

The argument passed into instance-initializers is either an Ember.ApplicationInstance instance or a Ember.EngineInstance instance. The .application property is only present on Ember.ApplicationInstance's.

This change adds some inline comments around the various conditionals and swaps the logic to use instance.base when present and avoid erroring if neither .base or .application is present.

A follow up PR will be made targeting release branch (because this won't cherry-pick easily).


Also, note, the second commit is not required but it does strip the deprecation related code in production builds which is kinda nice...


Addresses #4968

rwjblue added 2 commits May 4, 2017 10:01
The argument passed into `instance-initializers` is _either_ an
`Ember.ApplicationInstance` instance _or_ a `Ember.EngineInstance`
instance. The `.application` property is only present on
`Ember.ApplicationInstance`'s.

This change adds some inline comments around the various conditionals
and swaps the logic to use `instance.base` when present and avoid
erroring if neither `.base` or `.application` is present.
@bmac bmac merged commit b9f7e01 into emberjs:master May 4, 2017
@rwjblue rwjblue deleted the fix-engines branch May 4, 2017 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants