Skip to content

Conversation

@segayuu
Copy link
Contributor

@segayuu segayuu commented Jul 25, 2019

This PR is for conversion to method definition only, because there are many differences in git.
Automatic conversion in lebab does not occur if the constructor is defined in a class declaration.
The first purpose of Revert is to reduce manual conversion.

@segayuu segayuu requested a review from a team July 25, 2019 15:00
@segayuu segayuu added this to the v3.0.0 milestone Jul 25, 2019
@segayuu segayuu force-pushed the Convert-method-definitions branch 2 times, most recently from 5284bf7 to c72cbfd Compare August 29, 2019 14:10
@segayuu segayuu force-pushed the Convert-method-definitions branch from c72cbfd to 1c5c81e Compare August 30, 2019 02:17
@curbengh
Copy link
Contributor

curbengh commented Sep 1, 2019

Just curious, would https://github.com/hexojs/hexo/blob/master/lib/hexo/post.js (and others) benefit from refactor to this style?

@segayuu
Copy link
Contributor Author

segayuu commented Sep 1, 2019

If you reference hexo.model(), hexo.locals or hexo.database, you will benefit from it.

@segayuu segayuu merged commit 109151a into hexojs:master Sep 7, 2019
@segayuu segayuu deleted the Convert-method-definitions branch September 7, 2019 04:45
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.

2 participants