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
event names lose quotes when translated to coffeescript #16
Comments
whoa, everytime I run into an error myself, someone's already reported it. thanks! will work on this soon as it's bugging me as well! reduced example: x = { 'a.b': c } x = a.b: c # <- current behavior
x = 'a.b': c # <- should be like this |
Yeah, you'll have to quote keys with spaces as well: |
Try it now. |
Way too many quotes now: |
Thanks! Those edge cases should be taken care of now :) var hash = {
a: b,
'a.a': b,
'a#a': b,
'a a': b,
0: b,
'0.a': b,
$: b,
$$: b,
$a: b,
"$a b": b
}; now becomes: hash =
a: b
"a.a": b
"a#a": b
"a a": b
0: b
"0.a": b
$: b
$$: b
$a: b
"$a b": b |
This code:
Gets translated to something like this:
Instead of this:
The text was updated successfully, but these errors were encountered: