Is there a way for an inner object (t1) to access its container object.
var t = {
fnc1: function(){
alert("fnc1");
},
t1: {
fnc2: function(){
alert("fnc2");
},
fnc3: function(){
this.fnc1();
}
}
};
t.t1.fnc3();
when executing the following code i get an error 'this.fnc1 is not a function' since the this is referring to the t1 object and not the t object.
Is there any way to access the fnc1?