2

Simple question, What does do the following line:

$(@)

in CoffeeScript ?

iConnor
  • 19,491
  • 13
  • 60
  • 93
Leszek Andrukanis
  • 2,033
  • 2
  • 19
  • 29
  • 1
    may be useful furher reading regarding jQuery `$(this)` http://stackoverflow.com/questions/1051782/jquery-this-vs-this – andilabs Apr 29 '14 at 12:47

1 Answers1

10

@ is an alias for this.

So it calls the $ function (which may, or not, be jQuery depending on the rest of your code) with this as argument.

Denys Séguret
  • 355,860
  • 83
  • 755
  • 726