mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Underscore.js _.map() to native Array.map() (optional with Object.entries/values)
This commit is contained in:
parent
032fa8c736
commit
a82575a830
27 changed files with 68 additions and 78 deletions
|
|
@ -114,7 +114,7 @@ class FiltersUserSettings {
|
|||
|
||||
this.filters(
|
||||
_.compact(
|
||||
_.map(data.Result.Filters, (aItem) => {
|
||||
data.Result.Filters.map(aItem => {
|
||||
const filter = new FilterModel();
|
||||
return filter && filter.parse(aItem) ? filter : null;
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import window from 'window';
|
||||
import _ from '_';
|
||||
import ko from 'ko';
|
||||
|
||||
import Jua from 'Jua';
|
||||
|
|
@ -63,7 +62,7 @@ class ThemesUserSettings {
|
|||
const currentTheme = this.theme();
|
||||
|
||||
this.themesObjects(
|
||||
_.map(this.themes(), (theme) => ({
|
||||
this.themes().map(theme => ({
|
||||
name: theme,
|
||||
nameDisplay: convertThemeName(theme),
|
||||
selected: ko.observable(theme === currentTheme),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue