A simple example of what I'd like to do:
data = {name: 'fred'};
newData = {};
newData.name = data.name;
newData.name = 'ted';
console.log(data.name); // I want this to be ted not fred
Is it possible in Javascript to edit the second object and have it modify the first? I'm using alloyui 1.5 (yui 3.4.0) and trying to merge objects to create a datatable so the data appears on a single row but it needs to be editable, so it needs to point back to the original object.
Is such a thing possible or will I need to use events to push the data back to the first object?