and that CoffeeScript enforces this on me.
You also can see that with rare
exception, you’ve managed to get rid
of the parentheses that JavaScript would
require, in favor of terse, clean syntax.
You’re still using the same jQuery methods, but you’re doing so in a way that I
find easier to read.
You then take the changeSize function
and attach it to an event:
($ "p").click changeSize
parentheses around the call to "p",
which in standard jQuery would look like:
$("p")
CoffeeScript tries to get rid of as
many parentheses as possible, but there
are times when the ambiguity would
makes things too difficult for its parser.
In such circumstances, you can use
parentheses to make things easier.
As you can see from the above
example, CoffeeScript makes all of
jQuery’s functions available. No matter
It might look a bit strange to have the