What\'s the best way to chain methods in CoffeeScript? For example, if I have this JavaScript how could I write it in CoffeeScript?
var req = $.get(\'foo.htm\')
I sometimes prefer having fewer parentheses as opposed to chaining, so I'd modify Trevor's last example:
req = $.get 'foo.htm' req.success (response) -> # do something req.error -> # do something