mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Everything to ES2020
This commit is contained in:
parent
84ffe1e552
commit
78178ecc2f
16 changed files with 35 additions and 45 deletions
|
|
@ -23,7 +23,7 @@ ko.observable = initialValue => {
|
|||
observable[observableLatestValue] = initialValue;
|
||||
|
||||
Object.defineProperty(observable, length, {
|
||||
get: () => null == observable[observableLatestValue] ? undefined : observable[observableLatestValue][length]
|
||||
get: () => observable[observableLatestValue]?.[length]
|
||||
});
|
||||
|
||||
// Inherit from 'subscribable'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue