mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-09 01:17:04 +03:00
Object.entries().forEach() to forEachObjectEntry()
This commit is contained in:
parent
b8eb8f83fa
commit
6d7911a9ed
8 changed files with 18 additions and 18 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import ko from 'ko';
|
||||
|
||||
import { doc, $htmlCL, elementById } from 'Common/Globals';
|
||||
import { isFunction, forEachObjectValue } from 'Common/Utils';
|
||||
import { isFunction, forEachObjectValue, forEachObjectEntry } from 'Common/Utils';
|
||||
|
||||
let
|
||||
SCREENS = {},
|
||||
|
|
@ -349,7 +349,7 @@ export const
|
|||
},
|
||||
|
||||
decorateKoCommands = (thisArg, commands) =>
|
||||
Object.entries(commands).forEach(([key, canExecute]) => {
|
||||
forEachObjectEntry(commands, (key, canExecute) => {
|
||||
let command = thisArg[key],
|
||||
fn = (...args) => fn.enabled() && fn.canExecute() && command.apply(thisArg, args);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue