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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user