-
Notifications
You must be signed in to change notification settings - Fork 199
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
Unexpected . #222
Comments
this is a strange syntax, you sure, that this is valid js ? I mean the |
Ember extends javascript to allow functions to be represented as values in their templates and in other areas. The use of |
is it valid js or valid ember-js? |
It's valid js, ember probably uses prototypical inheritance to add You can fix the error in coffeescript by surrounding the anonymous function in parens. This lets the coffeescript compiler know that you're calling a function off the anon function, rather than something else.
|
Compiling JS -> Coffee
Compiles to:
And that coffee script yields an error:
unexpected .
by the compiler.The text was updated successfully, but these errors were encountered: