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

Chrome has nearly full ES6 support #23

Open
junewunder opened this issue May 3, 2016 · 0 comments
Open

Chrome has nearly full ES6 support #23

junewunder opened this issue May 3, 2016 · 0 comments

Comments

@junewunder
Copy link
Member

@jlam55555 I see you keep using function () {} for callbacks. This was necessary for previous versions of javascript, but ES6 has arrow functions, which keep the this context of the outside function. Arrow functions don't need a var thisRef = this. Also we should be using let instead of var. I say this partially to be a hipster, but also because I started by using let and let has serious benefits over var in terms of scoping. Anyway, feel free to use ES6 because people can use that on chrome by default! yay!

(anyone correct me if I'm wrong please)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant