mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39: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
15
dev/External/ko.js
vendored
15
dev/External/ko.js
vendored
|
|
@ -824,14 +824,13 @@ ko.bindingHandlers.emailsTags = {
|
|||
return null;
|
||||
},
|
||||
parseHook: (input) =>
|
||||
_.map(
|
||||
_.flatten(
|
||||
_.map(input, (inputValue) => {
|
||||
const values = EmailModel.parseEmailLine(inputValue);
|
||||
return values.length ? values : inputValue;
|
||||
})
|
||||
),
|
||||
(item) => (_.isObject(item) ? [item.toLine(false), item] : [item, null])
|
||||
_.flatten(
|
||||
input.map(inputValue => {
|
||||
const values = EmailModel.parseEmailLine(inputValue);
|
||||
return values.length ? values : inputValue;
|
||||
})
|
||||
).map(
|
||||
item => (_.isObject(item) ? [item.toLine(false), item] : [item, null])
|
||||
),
|
||||
change: (event) => {
|
||||
$el.data('EmailsTagsValue', event.target.value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue