Moin!
Klar, wenn die private Funktion aufgerufen wird, bezieht sich this nicht mehr auf das ehemalige Objekt. Daher mußt du den momentanen Bezug speichern:
function Test()
{
var self = this; // meinetwegen auch was anderes, falls self nicht gefällt
function privateFunction()
{
alert("private->this = " + self)
}
Cü,
Kai
--
What is the difference between Scientology and Microsoft? One is an
evil cult bent on world domination and the other was begun by L. Ron
Hubbard.
ie:{ fl:( br:< va:) ls:? fo:| rl:? n4:° ss:{ de:] js:| ch:? mo:| zu:|
What is the difference between Scientology and Microsoft? One is an
evil cult bent on world domination and the other was begun by L. Ron
Hubbard.
ie:{ fl:( br:< va:) ls:? fo:| rl:? n4:° ss:{ de:] js:| ch:? mo:| zu:|