mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 08:24:50 +03:00
Underscore.js _.each() to native Array.forEach() (optional with Object.entries/values)
This commit is contained in:
parent
178e5f6ef7
commit
a5d41edb24
25 changed files with 72 additions and 79 deletions
|
|
@ -120,7 +120,7 @@ class AbstractSettingsScreen extends AbstractScreen {
|
|||
delegateRun(this.oCurrentSubScreen, 'onShow');
|
||||
delegateRun(this.oCurrentSubScreen, 'onShowWithDelay', [], 200);
|
||||
|
||||
_.each(this.menu(), (item) => {
|
||||
this.menu().forEach(item => {
|
||||
item.selected(
|
||||
settingsScreen &&
|
||||
settingsScreen.__rlSettingsData &&
|
||||
|
|
@ -148,7 +148,7 @@ class AbstractSettingsScreen extends AbstractScreen {
|
|||
}
|
||||
|
||||
onBuild() {
|
||||
_.each(VIEW_MODELS.settings, (SettingsViewModel) => {
|
||||
VIEW_MODELS.settings.forEach(SettingsViewModel => {
|
||||
if (
|
||||
SettingsViewModel &&
|
||||
SettingsViewModel.__rlSettingsData &&
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ class MailBoxUserScreen extends AbstractScreen {
|
|||
FolderStore.foldersInboxUnreadCount(count);
|
||||
|
||||
const email = AccountStore.email();
|
||||
_.each(AccountStore.accounts(), (item) => {
|
||||
AccountStore.accounts().forEach(item => {
|
||||
if (item && email === item.email) {
|
||||
item.count(count);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue