mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
Use JavaScript Optional chaining in vendors/*
This commit is contained in:
parent
e5e4675c1b
commit
ef8b1f40e4
28 changed files with 619 additions and 750 deletions
|
|
@ -2,7 +2,7 @@ const arrayChangeEventName = 'arrayChange';
|
|||
ko.extenders['trackArrayChanges'] = (target, options) => {
|
||||
// Use the provided options--each call to trackArrayChanges overwrites the previously set options
|
||||
target.compareArrayOptions = {};
|
||||
if (options && typeof options == "object") {
|
||||
if (typeof options == "object") {
|
||||
ko.utils.extend(target.compareArrayOptions, options);
|
||||
}
|
||||
target.compareArrayOptions['sparse'] = true;
|
||||
|
|
@ -81,7 +81,7 @@ ko.extenders['trackArrayChanges'] = (target, options) => {
|
|||
cachedDiff = null;
|
||||
pendingChanges = 0;
|
||||
|
||||
if (changes && changes.length) {
|
||||
if (changes?.length) {
|
||||
target.notifySubscribers(changes, arrayChangeEventName);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue