I would need to declare Methods within Methods and call them outside as a Object, Method connotation... To make it more clear:
I need to call:
Object.Method().nestedMethod();
how can I do it so? This failed so far:
function Object(){
this.Method = function(){
this.Method.nestedMethod = function(){
};
};
}
As I work on a DSL it is necessary to call a Method within a Method. In this case the last Method is some kind of recursion Method of the previous one, like this:
Object.execute(param).recursion();
How would I have to declare the nested Method to access this so?