access to SubObject, self ,Parent Child ? how ?

Hi, maybe i'm wrong, if some can give me the good ways.
How to access to parent property in a sub property ?
i try this but my property self return me Windows ??


example:


$dataArmors[1].meta.Quest = {
self: this,
Status: false,
SubQ: [{
SelfTest: function (){return self.Status}
}]
}
// After i try call test
$dataArmors[1].meta.Quest.SubQ[0].SelfTest() // Return me undefined ?


Ho i only a example, but how i can acces to parent of the SubQ ??


thanks  a lot
can't you just

Code:
$dataArmors[1].meta.Quest.SelfTest()
@izyCoder


SelfTest are in SubQ array
 am try to get a value are inside my parent, back the array.


Access parent's parent from javascript object
maybe because in SelfTest, the self.status is not defined.

Code:
function (){
return self.Status
} //not defined

Code:
function (){
var self = {Status:"test"};
return self.Status
} //return "test"
There's no way to access a parent property.
I think I may have expressed myself badly.


How to get the status in my function here ?

Code:
myparent = {
	status: false,
	Sub: {
		subA: function () {return this.status}
	}
}
The only way to achieve that would be this:

Code:
var myparent = {};
myparent.status = false;
myparent.Sub = {
  subA : function() {
    return this.status;
  }.bind(myparent)
};
@Hudell


i read  The bind() method was deprecated in version 3.0. Use the on() method instead.


i can do similar with this method ?
No. That's about jquery.


The javascript bind is not deprecated.

Original thread: https://forums.rpgmakerweb.com/threads/access-to-subobject-self-parent-child-how.72714/