2

Simple question, What does do the following line:

$(@)

in CoffeeScript ?

iConnor
  • 19,997
  • 14
  • 62
  • 97
Leszek Andrukanis
  • 2,114
  • 2
  • 19
  • 30
  • 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
  • 372,613
  • 87
  • 782
  • 758