I have a listener inside Class A, and I want to pass Class A to my Class B inside the listener. Normally I’d just use this, but then I’d get the event that triggered the listener.
Share
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.
A.this.(It is rare that the inner class
thisis useful. Indeed it is relatively common to have bugs where the wrongthiswas used. So it is unfortunate that it is the default. Not about to change after 12 years.)