-
Notifications
You must be signed in to change notification settings - Fork 286
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
Use requireModule('ember')
instead of window.Ember
#1535
Conversation
670cf55
to
5c9519e
Compare
window.Ember
requireModule('ember')
instead of window.Ember
/* eslint no-console: 0 */ | ||
const Ember = window.Ember; | ||
let Ember; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you extract the logic of getting ember to some common function,
maybe getEmber()?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We definitely could! @avihai-yosef would you be interested in opening a PR to do that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, Sure
* Use require('ember') instead of `window.Ember` * require('ember') || window.Ember * Try requireModule * Try require.has * requireModule again * requireModule again * Fix issues with deprecation re-entry and debug class name logging * Fix tests for 3.27+ * Wrap ember require in try/catch * Skip mixin tests Co-authored-by: Chris Garrett <[email protected]>
Description
Screenshots