mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 21:49:21 +03:00
More ko.computed to pureComputed
This commit is contained in:
parent
a15454fd15
commit
679d7356e0
8 changed files with 46 additions and 50 deletions
|
|
@ -34,7 +34,7 @@ export const
|
|||
target[key] = /*isArray(value) ? ko.observableArray(value) :*/ ko.observable(value) ),
|
||||
|
||||
addComputablesTo = (target, computables) =>
|
||||
forEachObjectEntry(computables, (key, fn) => target[key] = ko.computed(fn)),
|
||||
forEachObjectEntry(computables, (key, fn) => target[key] = ko.computed(fn, {'pure':true})),
|
||||
|
||||
addSubscribablesTo = (target, subscribables) =>
|
||||
forEachObjectEntry(subscribables, (key, fn) => target[key].subscribe(fn)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue