mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Change KnockoutJS to just warn for missing Observables.
Sieve doesn't need them, for now.
This commit is contained in:
parent
76ade5eac0
commit
96d034b36a
17 changed files with 78 additions and 130 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue