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

Parenthesize function expressions that are part of member expressions #155

Closed
wants to merge 1 commit into from

Conversation

karlbohlmark
Copy link
Contributor

Currently js2coffee incorrectly translates property access on function expressions such as:. (function(){}.name) because it fails to parethesize the function expression being part of the member expression.

This becomes a problem for me when I want to translate for example: on('click', function(){}.bind(this))

@matisojka
Copy link

👍 Have observed exactly the same issue, came here to report it. Thanks!

@michaelficarra michaelficarra mentioned this pull request Aug 12, 2013
@Jarreddebeer
Copy link

Also observed the same issue

@timaschew timaschew closed this in b025e2e Jan 3, 2014
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.

3 participants