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

Do not take global as default context but this for AMD distribution (should fix #323) #325

Closed
wants to merge 1 commit into from

Conversation

jbescoyez
Copy link
Contributor

No idea how to test that. Would love to help. :)

@marcoow marcoow changed the title Do not take global as default context but window (should fix #323) Do not take global as default context but this (should fix #323) Oct 16, 2014
@marcoow marcoow changed the title Do not take global as default context but this (should fix #323) Do not take global as default context but this for AMD distribution (should fix #323) Oct 16, 2014
var Ember = global.Ember;
if (typeof Ember === 'undefined' && typeof require !== 'undefined') {
Ember = require('ember');
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only problem with this is that this is actually a breaking change (I'm not sure whether this will actually affect anybody though.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any idea who could help in this reflexion?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd just leave it as

var Ember = global.Ember;
if (typeof Ember === 'undefined' && typeof require !== 'undefined') {
  Ember = require('ember');
}

so that if there's an Ember global that is used.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update this according to my comment above?

@jbescoyez
Copy link
Contributor Author

PR updated

@marcoow marcoow added this to the 0.7.0 milestone Oct 17, 2014
@marcoow
Copy link
Member

marcoow commented Oct 17, 2014

merged f73c60d

@marcoow marcoow closed this Oct 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants