hi, I have Server Side JS code that I think should work.---------------
function A(_Pos){
this.init();
}
A.prototype.init = function(){
}
function B(){
this.docs = new Array();
this.init();
}
B.prototype.init = function(){
for(i=0;i<5;i++){
this.docs.push(new A(i));
}
}
When I call new B, I will recive message: ‘.docs’ is undefined.
When I rename B.prototype.init to B.prototype.init and call this.init2 from function B constructor, it does work fine.
Does it look like a bug?