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

Remove top-level Ember imports from generated authenticators #1055

Merged
merged 1 commit into from
Aug 18, 2016

Conversation

balinterdi
Copy link
Contributor

Ember is not used in any of the generated authenticators and only makes jshint sad.

`Ember` is not used in any of the generated authenticators and only makes jshint sad.
@marcoow marcoow added this to the 1.2 milestone Aug 18, 2016
@marcoow marcoow merged commit aaa9116 into mainmatter:master Aug 18, 2016
bakerac4 pushed a commit to bakerac4/ember-simple-auth that referenced this pull request Sep 8, 2016
…ter#1055)

`Ember` is not used in any of the generated authenticators and only makes jshint sad.
@@ -15,25 +15,25 @@ module.exports = {

if (baseClass === 'torii') {
return {
imports: 'import Ember from \'ember\';' + EOL + 'import Torii from \'ember-simple-auth/authenticators/torii\';',
imports: 'import Torii from \'ember-simple-auth/authenticators/torii\';',
baseClass: 'Torii',
body: EOL + ' torii: Ember.inject.service(\'torii\')'
Copy link
Contributor

Choose a reason for hiding this comment

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

I've not actually tested this, but just happened to notice that this authenticator does appear to use the imported Ember module.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed that line because I received a jslint error about the unused import. Not sure what the difference is between your setup and mine is, then.

Copy link
Member

Choose a reason for hiding this comment

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

That line is actually necessary as the authenticator cannot access torii otherwise but the import should be removed. PR would be awesome!

Copy link
Contributor

@mike183 mike183 Sep 12, 2016

Choose a reason for hiding this comment

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

@balinterdi I didn't actually see an error, it was just an observation I made when looking through the contents of recent commits. 👍

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.

3 participants