1
0
mirror of https://github.com/morris/vanilla-todo.git synced 2025-08-20 21:02:10 +02:00

refactor for pure functional business logic

This commit is contained in:
Morris Brodersen
2023-11-30 11:42:02 +01:00
parent 2815a1eb4c
commit dd8dc8c4af
15 changed files with 449 additions and 252 deletions

View File

@@ -20,7 +20,7 @@ export function TodoList(el) {
el.dispatchEvent(
new CustomEvent('moveTodoItem', {
detail: {
item: e.detail.data.item,
...e.detail.data.item,
index: e.detail.index,
},
bubbles: true,