Re: .addEventListener() not finding the right object method
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: .addEventListener() not finding the right object method

From: Liming <lmxudotnet@gmail.com>
Date: Fri Aug 26 2005 - 20:58:54 CEST

Mike,

That's a GREAT tutorial, wow, that was good. But I do have this
question...

You have the var instance = this; defined in the class (private
variable).. and such it's accessible to the inner functions of the
"constructor" class ONLY.

what if you are calling from a method of .prototype.mehtod()? In this
case, i wont' have access to the private instance variable "instance".
What's the best way to do this? Move this prototype method into the
class "consturctor" as an inner function?

I just recently picked up javascript, have a lot stupid questions,
please bear with me.
Received on Tue Oct 18 03:13:15 2005