Skip to content

Updating game.js to ES6#151

Open
lucasrafaldini wants to merge 1 commit intothomaspark:gh-pagesfrom
lucasrafaldini:patch-1
Open

Updating game.js to ES6#151
lucasrafaldini wants to merge 1 commit intothomaspark:gh-pagesfrom
lucasrafaldini:patch-1

Conversation

@lucasrafaldini
Copy link
Copy Markdown

Replacing empty named functions by ES6's arrow functions

Replacing empty named functions by ES6's arrow functions
@thomaspark
Copy link
Copy Markdown
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