有没有办法让 kendo.observable 向它返回的对象添加不可枚举的属性?例如:
var someObject = {};
someObject.x = 5;
Object.defineProperty(someObject, "someString", {
enumerable: false,
configurable: false,
writable: true
});
someObject.someString = "This is the base";
var foo = kendo.observable(someObject)
"x" in foo; //true
"someString" in someObject; //true
"someString" in foo; //false, but I want this to be true