|
|
|
|
|
by jaggederest
5020 days ago
|
|
The situation where it matters is with a trailing function argument, i.e. $ ->
# do something on document ready
$.ajax('path', options, (data) ->
# do something with the results
Instead of $(->
# do something on document ready
$.ajax('path', options, (data) ->
# do something with the data
)
)
Those trailing parens are ugly, and they're very common if you do event-oriented javascript via closures. |
|