-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Replace bound functions #375
Replace bound functions #375
Conversation
- Removed unnecessary whitespaces on line ending; - Fixed indentation for every component.
- Replaced event handlers by arrow expressions (class members); - Replaced calls to "bound function" to class property methods; - Removed declarations for "bound functions"; - Removed unused variables.
- Fixed resize handlers for "throttled" callbacks; - Affected components: - Carousel; - Parallax; - ScrollSpy; - TapTarget;
Sorry but this is impossible to review. Nearly every line was changed. As far as I can see, only spaces and code-style was changed. That is great, but I think this will happen at each I would suggest to use something like prettier. But I am not very familiar with it. It would be awesome if the style is automatically changed, so that we have a consistent code style. |
I am talking about this commit |
I agree with you that each one has a different coding style and it must be respected. If this sort of problem should not be fixed, this commit could be reverted. |
I merged it because it passed all test, and the code looked cleaner 😃 |
Proposed changes
Replaced component instances "bound functions" by ES6 arrow expressions (instance functions which are already bound to current context) whenever it was possible, making the code cleaner and easier to maintain in the long term.
Extra: Removed unnecessary spaces and "fixed" code indentation.
Types of changes
Checklist: