I created an object like the follwing:
I now have a function where I want to pass the object:
var foo=new objA;
The problem is that when I call test(), I get the functions in objA (objA.func1 and objA.func2) executed.
I would like just to get the properties value of objA.
I have to use another function and an array, fill the array with the properties of objA and then pass the array:
Is it the only way or I'm doing something wrong ?