I am doing OO javascript for the first time. I have read about inheritance and prototype and thought I had cracked it. Until I discovered this little example.
have you already tried to define this.clone_array = []; into TestObject2 instead?
this.clone_array = [];
function TestObject2(data) { this.clone_array = []; this.__construct(data); this.dothings = function() { this.dosomestuff(); } }