I have some code that looks like
self = @
and then later on it’s using @someMethodName or self.someMethodName
Does @ have some special meaning?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
@is not a valid character for a javascript identifier. Identifiers may only contain$,_, digits and letters.In coffeescript,
@meansthis.Edit: As far as jQuery is concerned, the same identifier rules as javascript apply since jQuery is just javascript. For other uses of
@in jQuery, see this question or the docs.