Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upDouble colon (::) operator #370
Comments
This comment has been minimized.
This comment has been minimized.
|
This is an ES7 feature. You need to use the custom parser, |
jprichardson
closed this
Jan 5, 2016
lock
bot
locked as resolved and limited conversation to collaborators
May 10, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
flipjs commentedJan 5, 2016
I downloaded a boilerplate from TJ Holowaychuk and he is using :: operator like this ::this.onClick . I guess it has the same effect as this.onClick.bind(this).
My vim editor complains about this and the message is "Parsing error: Unexpected token : (undefined)" . Is this being added to standard? Or does eslint even support this yet?
Here's the link to TJ's code:
https://github.com/tj/frontend-boilerplate/blob/master/client/components/Header/index.jsx