Skip to content

Commit

Permalink
example: minor .for() change
Browse files Browse the repository at this point in the history
  • Loading branch information
sebkolind committed Nov 23, 2023
1 parent 24c826d commit 29b1ae4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions example/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,9 @@ const List = {

li.for(parent.state.items, function ({ el, item }) {
if (item.id % 2 === 0) {
el.remove()
el.style.fontWeight = 'bold'
el.style.color = 'coral'
}

el.on('click', function () {
console.log('item', item)
})
})
}
}
Expand Down

0 comments on commit 29b1ae4

Please sign in to comment.