mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 22:47:03 +03:00
Change ()=>{} into ()=>0
This commit is contained in:
parent
2d87b52c07
commit
d536b5eeee
10 changed files with 21 additions and 23 deletions
|
|
@ -218,9 +218,9 @@ export class Selector {
|
|||
|
||||
itemSelected(item) {
|
||||
if (this.isListChecked()) {
|
||||
item || (this.oCallbacks.ItemSelect || (()=>{}))(null);
|
||||
item || (this.oCallbacks.ItemSelect || (()=>0))(null);
|
||||
} else if (item) {
|
||||
(this.oCallbacks.ItemSelect || (()=>{}))(item);
|
||||
(this.oCallbacks.ItemSelect || (()=>0))(item);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -258,7 +258,7 @@ export class Selector {
|
|||
const item = getItem(this.sItemSelector);
|
||||
if (item) {
|
||||
this.focusedItem(item);
|
||||
(this.oCallbacks.MiddleClick || (()=>{}))(item);
|
||||
(this.oCallbacks.MiddleClick || (()=>0))(item);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ let __themeTimer = 0,
|
|||
* @param {function=} themeTrigger = noop
|
||||
* @returns {void}
|
||||
*/
|
||||
export function changeTheme(value, themeTrigger = ()=>{}) {
|
||||
export function changeTheme(value, themeTrigger = ()=>0) {
|
||||
const themeStyle = elementById('app-theme-style'),
|
||||
clearTimer = () => {
|
||||
__themeTimer = setTimeout(() => themeTrigger(SaveSettingsStep.Idle), 1000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue