Change KnockoutJS to just warn for missing Observables.

Sieve doesn't need them, for now.
This commit is contained in:
the-djmaze 2024-09-24 11:33:49 +02:00
parent 76ade5eac0
commit 96d034b36a
17 changed files with 78 additions and 130 deletions

View file

@ -58,18 +58,6 @@ export const
serverErrorDesc(text);
},
koObserve = (obj, prop) => {
// Object.getOwnPropertyNames(obj).forEach(prop => {
// prop = prop.replace(/^_/, '');
obj['ko_' + prop] = ko.computed({
read: () => obj[prop],
write: (v) => obj[prop] = v,
pure:true
});
// });
// Object.preventExtensions(obj);
},
getComparators = (validOnly = 0) => {
let result = [
// Default