So I need to prevent data binding for a specific variable. I want to do it like this:
// data is mostly an object in my case.
// it would be nice if there's a global solution
function(data) {
d = data; // variable that changes on user input
oldD = data; // variable that shouldn't change on user input
}
but whenever I implement code like this the oldD variable will change when the d variable gets changed. And I would like to prevent this from happening. But how do I prevent such a thing?