Hallo,
function A () {
var foo = "foo string";
this.B = function () {
C = function () {
foo = "bar string";
}
}
}
Hm oder noch anders, moment:
~~~javascript
function A () {
var foo = "foo string";
var parentObject = this;
this.B = function () {
var C = function () {
parentObject.foo = "bar string";
}
}
}
Grüße
Jeena Paradies