mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +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
6
vendors/jua/jua.js
vendored
6
vendors/jua/jua.js
vendored
|
|
@ -10,7 +10,7 @@
|
|||
*/
|
||||
getDataFromFiles = (aItems, fFileCallback, iLimit, fLimitCallback) =>
|
||||
{
|
||||
if (aItems && aItems.length)
|
||||
if (aItems?.length)
|
||||
{
|
||||
let
|
||||
oFile,
|
||||
|
|
@ -261,7 +261,7 @@
|
|||
*/
|
||||
runEvent(sName, ...aArgs)
|
||||
{
|
||||
this.oEvents[sName] && this.oEvents[sName].apply(null, aArgs);
|
||||
this.oEvents[sName]?.apply(null, aArgs);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -392,7 +392,7 @@
|
|||
self.generateNewInput(oClickElement);
|
||||
}, 10);
|
||||
};
|
||||
if (oInput.files && oInput.files.length) {
|
||||
if (oInput.files?.length) {
|
||||
getDataFromFiles(oInput.files, fFileCallback,
|
||||
limit,
|
||||
self.getEvent('onLimitReached')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue