When kendo observable.get returns an object, it adds other properties such as uid and _events.
For example,
var observable = new kendo.data.ObservableObject();
var myCar = {make: "toyota", model: "camry"};
observable.set("car", myCar);
var carVar = observable.get("car");
console.log(carVar);
The console logs:
Working example is located here
How can I get the original object without the added properties?
2
Answers
Try toJSON()
You can either make a list of the relevant keys or get them from the original object like this:
Here’s the code to get an object containing only entries for the original keys from the new object: