T
Thomas K. Nielsen
Hi I have the following structure of namespaces
aa = {};
aa.bb = {};
aa.bb.aaList = function(int){};
aa.bb.aaList.prototype = {
aQuestion: function(id){
active = this.anArray[id] // settin the value of
active from an array I have built earlier
}
};
//----------------------------------------------------
Now I want to call my function
x = new aa.bb.aaList(50);
//x.aQuestion(10) // I can do this - but I want a way to return the
active property of the aQuestion function
like this :
x.aQuestion(10).active
How can I do that? Any suggestion? Thanks in advance
Thomas
aa = {};
aa.bb = {};
aa.bb.aaList = function(int){};
aa.bb.aaList.prototype = {
aQuestion: function(id){
active = this.anArray[id] // settin the value of
active from an array I have built earlier
}
};
//----------------------------------------------------
Now I want to call my function
x = new aa.bb.aaList(50);
//x.aQuestion(10) // I can do this - but I want a way to return the
active property of the aQuestion function
like this :
x.aQuestion(10).active
How can I do that? Any suggestion? Thanks in advance
Thomas