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

blueprints: remove explicit names from initializers. #14338

Merged
merged 1 commit into from
May 22, 2017
Merged

blueprints: remove explicit names from initializers. #14338

merged 1 commit into from
May 22, 2017

Conversation

eventualbuddha
Copy link
Contributor

@rwjblue
Copy link
Member

rwjblue commented Sep 24, 2016

The blueprint tests are failing (they assert the generated text).

@eventualbuddha
Copy link
Contributor Author

@rwjblue fixed now.

@Turbo87
Copy link
Member

Turbo87 commented Oct 10, 2016

@rwjblue friendly reminder 😉

@eventualbuddha
Copy link
Contributor Author

@rwjblue ping

@kellyselden
Copy link
Member

I'm cool with this change.

name: '<%= dasherizedModuleName %>',
initialize
};
export default { initialize };
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we keep this multi-line to minimize diffs (here and for users, especially when adding before/afters)?

Copy link
Member

Choose a reason for hiding this comment

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

actually, the diff will be just as small/large as before unless you start to introduce trailing commas 😉

Copy link
Contributor

@locks locks Jan 10, 2017

Choose a reason for hiding this comment

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

One-line diff:

export default {
  initialize
}

->

export default {
  after: 'ember-data',
  initialize
};

vs

Four-line diff:

export default { initialize };

->

export default {
  after: 'ember-data',
  initialize
};

I also believe it'll be less confusing for new peeps if we keep it multi-line.

@eventualbuddha
Copy link
Contributor Author

I don't have time to do this right now, but I believe you all should be able to edit my branch.

@locks locks self-assigned this Apr 21, 2017
Copy link
Member

@Turbo87 Turbo87 left a comment

Choose a reason for hiding this comment

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

this seems like a reasonable change to me

@stefanpenner
Copy link
Member

this seems like a reasonable change to me

+1

@Turbo87
Copy link
Member

Turbo87 commented May 22, 2017

@locks @rwjblue @stefanpenner this seems ready to be merged. could someone press the big green button?

@stefanpenner stefanpenner merged commit 68e73c3 into emberjs:master May 22, 2017
@stefanpenner stefanpenner deleted the no-initializer-name branch May 22, 2017 15:11
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.

6 participants