Here's a basic illustration of my goal:
data = {name: 'fred'};
newData = {};
newData.name = data.name;
newData.name = 'ted';
console.log(data.name); // I expect this to be ted instead of fred
I am wondering if it is feasible in JavaScript to update the second object and have it impact the first one. Currently, I am utilizing alloyui 1.5 (yui 3.4.0) and attempting to combine objects to form a datatable where the information is displayed on a single row but remains editable, essentially pointing back to the original object.
Is this achievable or do I need to implement events to push the changes back to the initial object?