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

Updating game.js to ES6 #151

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open

Updating game.js to ES6 #151

wants to merge 1 commit into from

Conversation

lucasrafaldini
Copy link

Replacing empty named functions by ES6's arrow functions

Replacing empty named functions by ES6's arrow functions
@thomaspark
Copy link
Owner

Hey @lucasrafaldini, thanks for the PR.

We have take care replacing functions with arrow functions because there are several places within the functions where this is used, and this change will affect their values. See: https://stackoverflow.com/questions/31095710/methods-in-es6-objects-using-arrow-functions

We can keep functions as is, or also replace this with game.

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