Results 1 to 13 of 13
Nov 26, 2007, 21:28 #1
- Join Date
- Nov 2005
- 0 Post(s)
- 0 Thread(s)
The situation I am trying to get help in understanding is that within a class, I thought all functions could call each other. In this example, that is not true. Once in the privateFunction, I can not call any other public function. I can call other private functions but I get an error stating “this.secondPublicFunction is not a function” if I call a public function.
Does anyone know why privateFunction() can not call secondPublicFunction()? I also find it odd that when I do an alert from the private function, this is referring to Window. When I do an alert from the public function, this refers to the Object, which is what I expected.
Thanks in advance for your time.