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

Run ember watson: methodify on addon/ and test/ #3926

Merged
merged 2 commits into from
Dec 2, 2015

Conversation

seanpdoyle
Copy link
Contributor

[CLEANUP] ember watson:methodify addon/

Convert function declaration into ES6 syntax.

[CLEANUP] ember watson:methodify tests/

Convert to ES6 function declarations in tests.

@@ -49,7 +49,7 @@ export default Ember.Mixin.create({
@param {Object} query object of query parameters to send for query requests.
@return {String} url
*/
buildURL: function(modelName, id, snapshot, requestType, query) {
buildURL(modelName, id, snapshot, requestType, query) {
Copy link
Member

Choose a reason for hiding this comment

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

I'm not a big fan of the concise method definitions because I find it makes it harder to search for the method definition in a file.

That said, if others prefer this syntax I don't want to stand in the way of it being merged. cc @igorT @wecc @fivetanley

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm fine with either

Copy link
Member

Choose a reason for hiding this comment

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

either is fine with me.

@fivetanley
Copy link
Member

Hi @seanpdoyle, can you rerun the commands? There are merge conflicts, but we agreed to merge this.

Convert function declaration into ES6 syntax.
Convert to ES6 function declarations in tests.
@seanpdoyle
Copy link
Contributor Author

@fivetanley 👌

fivetanley added a commit that referenced this pull request Dec 2, 2015
Run `ember watson: methodify` on `addon/` and `test/`
@fivetanley fivetanley merged commit 7bef33d into emberjs:master Dec 2, 2015
@seanpdoyle seanpdoyle deleted the sd-ember-watson branch December 2, 2015 19:08
@abuiles
Copy link
Member

abuiles commented Dec 2, 2015

👍 it works!

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.

5 participants