I have a object as myObject, I want in the myObject.b.c.c3 function access parents member,
the following is my example:
var myObject = {
a: {
a1: 1,
a2: 2
},
b: {
b1: 3,
b2: 4,
c: {
c1: 5,
c2: 6,
c3: function() {
//how can here access a.a1, a.a2, b.b1 and b.b2,??
//not use myObject.a.a1, myObject.a.a2, myObject.b.b1....etc
//can like to use this.parent.parent.a.a1??
}
}
}
}
any idea?