mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 04:24:45 -04:00
More changes from jq.data to pure props.
This commit is contained in:
parent
a3c9bc9db0
commit
131d153cf5
8 changed files with 15 additions and 19 deletions
|
@ -116,8 +116,8 @@ function initItem(item) {
|
|||
item.$view.find('a').on('click', ev => {
|
||||
ev.preventDefault();
|
||||
|
||||
const matchedItems = lo.compact(lo.map(jq('#items .item'), matchedItem => {
|
||||
matchedItem = jq(matchedItem).data('item');
|
||||
const matchedItems = lo.compact(lo.map(jq('#items .item'), el => {
|
||||
const matchedItem = el._item;
|
||||
return lo.includes(settings.types, matchedItem.type) ? matchedItem : null;
|
||||
}));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue