How can I prevent data binding for a specific variable? Here's my current approach:
// In my case, data is mostly an object.
// I would prefer a global solution
function(data) {
d = data; // This variable changes based on user input
oldD = data; // This variable should not change with user input
}
However, every time I use this code, the oldD variable ends up changing when the d variable changes. I want to avoid this scenario. How can I achieve this?