I have an object a
:
var a = {//some properties....};
Then b
refer a
:
var b = a;
function modifyB()
{
//do something with b to change a
}
//after finish I want from b to refer an other object c
b = c;
The problem that a refer c , how can I change b without changing a after modifyB()
.